From 01b27458a170fdad6ab2a8f214e160f64477c978 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Apr 2007 05:49:09 +0000 Subject: [PATCH] Fix this to use the right block ID git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36550 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.34.1