mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 11:08:27 +00:00
use the correct code for binop instrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80d692be2e
commit
f639875cd7
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user