fix build with non-buggy compilers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-05-01 07:03:37 +00:00
parent a7c49aac98
commit 60ce9b5a01

View File

@ -571,7 +571,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i)
Vals.push_back(VE.getValueID(I.getOperand(i))); Vals.push_back(VE.getValueID(I.getOperand(i)));
break; break;
case Instruction::Invoke: case Instruction::Invoke: {
Code = bitc::FUNC_CODE_INST_INVOKE; Code = bitc::FUNC_CODE_INST_INVOKE;
// FIXME: param attrs // FIXME: param attrs
Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
@ -596,6 +596,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
} }
} }
break; break;
}
case Instruction::Unwind: case Instruction::Unwind:
Code = bitc::FUNC_CODE_INST_UNWIND; Code = bitc::FUNC_CODE_INST_UNWIND;
break; break;
@ -668,8 +669,8 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
Vals.push_back(VE.getValueID(I.getOperand(i))); Vals.push_back(VE.getValueID(I.getOperand(i)));
} }
} }
}
break; break;
}
case Instruction::VAArg: case Instruction::VAArg:
Code = bitc::FUNC_CODE_INST_VAARG; Code = bitc::FUNC_CODE_INST_VAARG;