projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99ebb31
)
Use the ArrayType member function for array element types.
author
Filipe Cabecinhas
<me@filcab.net>
Wed, 29 Apr 2015 02:27:21 +0000
(
02:27
+0000)
committer
Filipe Cabecinhas
<me@filcab.net>
Wed, 29 Apr 2015 02:27:21 +0000
(
02:27
+0000)
ArrayType and StructType accept the same types, so no test.
llvm-svn: 236078
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index
a381c30
..
8141d56
100644
(file)
--- a/
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@
-1475,7
+1475,7
@@
std::error_code BitcodeReader::ParseTypeTableBody() {
if (Record.size() < 2)
return Error("Invalid record");
if ((ResultTy = getTypeByID(Record[1])) &&
-
Struct
Type::isValidElementType(ResultTy))
+
Array
Type::isValidElementType(ResultTy))
ResultTy = ArrayType::get(ResultTy, Record[0]);
else
return Error("Invalid type");