Remove redundant checks. NFC
llvm-svn: 237488
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user