projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34bc178
)
Rather than asserting. Dump out the MI that we are not able to encode and abort.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 5 Mar 2008 02:08:03 +0000
(
02:08
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 5 Mar 2008 02:08:03 +0000
(
02:08
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47933
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86CodeEmitter.cpp
b/lib/Target/X86/X86CodeEmitter.cpp
index 522891c7cd15876936e1e7ff46960d323e1cf2c6..8fdf6a501f78d0b6a27b54a9ecb9fffa5bfe1626 100644
(file)
--- a/
lib/Target/X86/X86CodeEmitter.cpp
+++ b/
lib/Target/X86/X86CodeEmitter.cpp
@@
-807,5
+807,10
@@
void Emitter::emitInstruction(const MachineInstr &MI,
break;
}
- assert((Desc->isVariadic() || CurOp == NumOps) && "Unknown encoding!");
+ if (!Desc->isVariadic() && CurOp != NumOps) {
+ cerr << "Cannot encode: ";
+ MI.dump();
+ cerr << '\n';
+ abort();
+ }
}