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:
9850b57
)
Allow structs with zero fields.
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:21:50 +0000
(08:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:21:50 +0000
(08:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36862
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 2e9de1c1f132aff585e488e29c675dc8827d7481..ffbd0e8a0e5e54d32fad46b206d8720821e6e8de 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-326,7
+326,7
@@
bool BitcodeReader::ParseTypeTable() {
break;
}
case bitc::TYPE_CODE_STRUCT: { // STRUCT: [ispacked, eltty x N]
- if (Record.size() <
2
)
+ if (Record.size() <
1
)
return Error("Invalid STRUCT type record");
std::vector<const Type*> EltTys;
for (unsigned i = 1, e = Record.size(); i != e; ++i)