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:
parent
a06515f6f6
commit
12671c208c
@ -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,
|
||||
|
@ -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
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user