mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 08:11:45 +00:00
Use the ArrayType member function for array element types.
ArrayType and StructType accept the same types, so no test. llvm-svn: 236078
This commit is contained in:
1 parent
99ebb31283
commit
52d42c725a
1 file changed
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user