mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-18 12:31:26 +00:00
Allow structs with zero fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36862 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9850b57587
commit
7108dce324
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user