[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 19 14:57:50 PDT 2006
Changes in directory llvm/lib/Bytecode/Writer:
Writer.cpp updated: 1.119 -> 1.120
---
Log message:
Fix misencoding of calling conventions
---
Diffs of the changes: (+3 -2)
Writer.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.119 llvm/lib/Bytecode/Writer/Writer.cpp:1.120
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.119 Wed Jan 25 17:08:15 2006
+++ llvm/lib/Bytecode/Writer/Writer.cpp Fri May 19 16:57:37 2006
@@ -734,8 +734,9 @@
// If this is the escape sequence for call, emit the tailcall/cc info.
const CallInst &CI = cast<CallInst>(I);
++NumOperands;
- if (NumOperands < 3) {
- Slots[NumOperands-1] = (CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
+ if (NumOperands <= 3) {
+ Slots[NumOperands-1] =
+ (CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
if (Slots[NumOperands-1] > MaxOpSlot)
MaxOpSlot = Slots[NumOperands-1];
}
More information about the llvm-commits
mailing list