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:
2d12b2c
)
Be picky
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Aug 2004 08:55:34 +0000
(08:55 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 1 Aug 2004 08:55:34 +0000
(08:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15400
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index 319fe4f1e98b9cfc2518523eefb114d5de234f97..ea81795e0f27eee5bbfe93d32352bfdf96206d97 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.cpp
+++ b/
utils/TableGen/AsmWriterEmitter.cpp
@@
-75,8
+75,12
@@
void AsmWriterEmitter::run(std::ostream &O) {
// If this is a two-address instruction and we are not accessing the
// 0th operand, remove an operand.
- if (I->second.isTwoAddress && OpNo != 0)
+ if (I->second.isTwoAddress && OpNo != 0) {
+ if (OpNo == 1)
+ throw "Should refer to operand #0 instead of #1 for two-address"
+ " instruction '" + I->first + "'!";
--OpNo;
+ }
O << "; printOperand(MI->getOperand(" << OpNo << "), MVT::"
<< getName(I->second.OperandList[OpNo].Ty) << "); O ";