mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Use the ArrayType member function for array element types.
ArrayType and StructType accept the same types, so no test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d09e0e550
commit
5c9b6dbb73
@ -1475,7 +1475,7 @@ std::error_code BitcodeReader::ParseTypeTableBody() {
|
||||
if (Record.size() < 2)
|
||||
return Error("Invalid record");
|
||||
if ((ResultTy = getTypeByID(Record[1])) &&
|
||||
StructType::isValidElementType(ResultTy))
|
||||
ArrayType::isValidElementType(ResultTy))
|
||||
ResultTy = ArrayType::get(ResultTy, Record[0]);
|
||||
else
|
||||
return Error("Invalid type");
|
||||
|
Loading…
x
Reference in New Issue
Block a user