Fix misencoding of calling conventions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-05-19 21:57:37 +00:00
parent 7dd29aadf9
commit ebf8e6cd92

View File

@ -734,8 +734,9 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
// 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];
}