From 1d9f642cc852a9e29e004f4812cac836392ada4b Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Fri, 15 May 2015 23:57:13 +0000 Subject: [PATCH] Remove redundant checks. NFC llvm-svn: 237488 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 145c73498621..743466051a18 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/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())