mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -326,7 +326,7 @@ bool BitcodeReader::ParseTypeTable() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case bitc::TYPE_CODE_STRUCT: { // STRUCT: [ispacked, eltty x N]
|
case bitc::TYPE_CODE_STRUCT: { // STRUCT: [ispacked, eltty x N]
|
||||||
if (Record.size() < 2)
|
if (Record.size() < 1)
|
||||||
return Error("Invalid STRUCT type record");
|
return Error("Invalid STRUCT type record");
|
||||||
std::vector<const Type*> EltTys;
|
std::vector<const Type*> EltTys;
|
||||||
for (unsigned i = 1, e = Record.size(); i != e; ++i)
|
for (unsigned i = 1, e = Record.size(); i != e; ++i)
|
||||||
|
Reference in New Issue
Block a user