projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caccc99
)
add support for BLOCKINFO records at the module level. This fixes the reader
author
Chris Lattner
<sabre@nondot.org>
Sat, 5 May 2007 18:57:30 +0000
(18:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 5 May 2007 18:57:30 +0000
(18:57 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index 23d632a33091ee33cdb31073058f135e2446e78e..79ddcf799e9cfbd4bf38615b64c7c4379e0540e0 100644
(file)
--- 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;