llvm.org GIT mirror llvm / 7108dce
Allow structs with zero fields. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36862 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
325325 break;
326326 }
327327 case bitc::TYPE_CODE_STRUCT: { // STRUCT: [ispacked, eltty x N]
328 if (Record.size() < 2)
328 if (Record.size() < 1)
329329 return Error("Invalid STRUCT type record");
330330 std::vector EltTys;
331331 for (unsigned i = 1, e = Record.size(); i != e; ++i)