summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-02 04:26:36 +0000
committerChris Lattner <sabre@nondot.org>2007-05-02 04:26:36 +0000
commitf639875cd73902a29bc222d520cc0c45d379d137 (patch)
tree969595d79b3040f1f99ac719447d5f4c38b2d69b
parent80d692be2e0ddadccb070d6dcde5b5c8c8ab8eec (diff)
downloadllvm-f639875cd73902a29bc222d520cc0c45d379d137.tar.gz
llvm-f639875cd73902a29bc222d520cc0c45d379d137.tar.bz2
llvm-f639875cd73902a29bc222d520cc0c45d379d137.tar.xz
use the correct code for binop instrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36639 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index c0189ee3b6..f4ebeeaffd 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -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)));