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:
3530baf
)
Watch out for variable_ops instructions.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 6 Sep 2006 20:32:45 +0000
(20:32 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 6 Sep 2006 20:32:45 +0000
(20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30135
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 33b28017e58412f1ca7af851b60bed445cde381e..bfbf98968a2fbbb413d6ec454069841604723e5c 100644
(file)
--- a/
lib/Target/X86/X86CodeEmitter.cpp
+++ b/
lib/Target/X86/X86CodeEmitter.cpp
@@
-493,7
+493,7
@@
void Emitter::emitInstruction(const MachineInstr &MI) {
emitRegModRMByte(MI.getOperand(CurOp++).getReg(),
(Desc.TSFlags & X86II::FormMask)-X86II::MRM0r);
- if (CurOp != MI.getNumOperands())
+ if (CurOp != MI.getNumOperands()
&& MI.getOperand(CurOp).isImmediate()
)
emitConstant(MI.getOperand(CurOp++).getImm(), sizeOfImm(Desc));
break;