1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

use the correct code for binop instrs

llvm-svn: 36639
This commit is contained in:
Chris Lattner 2007-05-02 04:26:36 +00:00
parent 055c13234b
commit f81f6e154c

View File

@ -497,7 +497,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
Vals.push_back(VE.getValueID(I.getOperand(0)));
} else {
assert(isa<BinaryOperator>(I) && "Unknown instruction!");
Code = bitc::CST_CODE_CE_BINOP;
Code = bitc::FUNC_CODE_INST_BINOP;
Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode()));
Vals.push_back(VE.getTypeID(I.getType()));
Vals.push_back(VE.getValueID(I.getOperand(0)));