diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-05 18:57:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-05 18:57:30 +0000 |
commit | 3f7998054a4b92c1823b412f1608259154dd0bbe (patch) | |
tree | 0991255177e961509e7393ceeb682ea0073a2954 /lib/Bitcode | |
parent | caccc996e2b77503526ab8769444dd5542960a79 (diff) | |
download | external_llvm-3f7998054a4b92c1823b412f1608259154dd0bbe.zip external_llvm-3f7998054a4b92c1823b412f1608259154dd0bbe.tar.gz external_llvm-3f7998054a4b92c1823b412f1608259154dd0bbe.tar.bz2 |
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 23d632a..79ddcf7 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; |