From 9f35f9112d10420d96cf46c49f5d2d0b18c5f953 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 May 2007 04:26:36 +0000 Subject: use the correct code for binop instrs llvm-svn: 36639 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index c0189ee3b618..f4ebeeaffdcd 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(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))); -- cgit v1.2.3