projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c16124
)
Remove redundant checks. NFC
author
Filipe Cabecinhas
<me@filcab.net>
Fri, 15 May 2015 23:57:13 +0000
(23:57 +0000)
committer
Filipe Cabecinhas
<me@filcab.net>
Fri, 15 May 2015 23:57:13 +0000
(23:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237488
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index 145c734986218eff2f0b2e1faff10765daf9c630..743466051a1806ddfe529b18140c4f76876c2635 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-3604,8
+3604,6
@@
std::error_code BitcodeReader::ParseFunctionBody(Function *F) {
if (!IsStruct && !IsArray)
return Error("INSERTVAL: Invalid type");
- if (!CurTy->isStructTy() && !CurTy->isArrayTy())
- return Error("Invalid type");
if ((unsigned)Index != Index)
return Error("Invalid value");
if (IsStruct && Index >= CurTy->subtypes().size())