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 | 9f35f9112d10420d96cf46c49f5d2d0b18c5f953 (patch) | |
tree | 8306edea7fa7fb7bfe6481150c45a98950a4e51d /llvm | |
parent | 11dfd35627bc1fb53cdb8950544ed487c15f948f (diff) | |
download | bcm5719-llvm-9f35f9112d10420d96cf46c49f5d2d0b18c5f953.tar.gz bcm5719-llvm-9f35f9112d10420d96cf46c49f5d2d0b18c5f953.zip |
use the correct code for binop instrs
llvm-svn: 36639
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index c0189ee3b61..f4ebeeaffdc 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/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))); |