diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-02 04:26:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-02 04:26:36 +0000 |
commit | f639875cd73902a29bc222d520cc0c45d379d137 (patch) | |
tree | 969595d79b3040f1f99ac719447d5f4c38b2d69b | |
parent | 80d692be2e0ddadccb070d6dcde5b5c8c8ab8eec (diff) | |
download | external_llvm-f639875cd73902a29bc222d520cc0c45d379d137.zip external_llvm-f639875cd73902a29bc222d520cc0c45d379d137.tar.gz external_llvm-f639875cd73902a29bc222d520cc0c45d379d137.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index c0189ee..f4ebeea 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))); |