From 3f7998054a4b92c1823b412f1608259154dd0bbe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 5 May 2007 18:57:30 +0000 Subject: [PATCH] add support for BLOCKINFO records at the module level. This fixes the reader issues reid noticed last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36785 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 23d632a3309..79ddcf799e9 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -805,6 +805,10 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) { if (Stream.SkipBlock()) return Error("Malformed block record"); break; + case bitc::BLOCKINFO_BLOCK_ID: + if (Stream.ReadBlockInfoBlock()) + return Error("Malformed BlockInfoBlock"); + break; case bitc::PARAMATTR_BLOCK_ID: if (ParseParamAttrBlock()) return true;