forked from OSchip/llvm-project
parent
7939d119e1
commit
1d9f642cc8
|
@ -3604,8 +3604,6 @@ std::error_code BitcodeReader::ParseFunctionBody(Function *F) {
|
||||||
|
|
||||||
if (!IsStruct && !IsArray)
|
if (!IsStruct && !IsArray)
|
||||||
return Error("INSERTVAL: Invalid type");
|
return Error("INSERTVAL: Invalid type");
|
||||||
if (!CurTy->isStructTy() && !CurTy->isArrayTy())
|
|
||||||
return Error("Invalid type");
|
|
||||||
if ((unsigned)Index != Index)
|
if ((unsigned)Index != Index)
|
||||||
return Error("Invalid value");
|
return Error("Invalid value");
|
||||||
if (IsStruct && Index >= CurTy->subtypes().size())
|
if (IsStruct && Index >= CurTy->subtypes().size())
|
||||||
|
|
Loading…
Reference in New Issue