mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Remove redundant checks. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c16124807
commit
6bde794d52
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user