diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 5851710fe0d..2a4b13a9478 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -485,8 +485,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, BitstreamWriter &Stream, SmallVector &Vals) { return; // FIXME: REMOVE - - unsigned Code = 0; unsigned AbbrevToUse = 0; switch (I.getOpcode()) { @@ -524,7 +522,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, /// WriteFunction - Emit a function body to the module stream. static void WriteFunction(const Function &F, ValueEnumerator &VE, BitstreamWriter &Stream) { - Stream.EnterSubblock(bitc::TYPE_SYMTAB_BLOCK_ID, 3); + Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 3); VE.incorporateFunction(F); SmallVector Vals;