1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

MachineVerifier: Add missing linebreak

MachineInstr::print() with SkipOppers==true does not produce a
linebreak, so we have to do that in MachineVerifier::report().

llvm-svn: 252551
This commit is contained in:
Matthias Braun 2015-11-09 23:59:29 +00:00
parent a06515f6f6
commit 12671c208c
2 changed files with 3 additions and 1 deletions

View File

@ -425,6 +425,7 @@ void MachineVerifier::report(const char *msg, const MachineInstr *MI) {
if (Indexes && Indexes->hasIndex(MI))
errs() << Indexes->getInstructionIndex(MI) << '\t';
MI->print(errs(), /*SkipOpers=*/true);
errs() << '\n';
}
void MachineVerifier::report(const char *msg,

View File

@ -15,7 +15,8 @@ body: |
bb.0.entry:
liveins: %edi
; CHECK: *** Bad machine code: Too few operands ***
; CHECK: instruction: COPY2 operands expected, but 0 given.
; CHECK: instruction: COPY
; CHECK: 2 operands expected, but 0 given.
COPY
RETQ
...