From: Duncan P. N. Exon Smith Date: Tue, 5 Aug 2014 18:22:58 +0000 (+0000) Subject: Remove dead code in condition X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b72118fb52a5d7e8d2a800a7b00718e0210a34f5;p=oota-llvm.git Remove dead code in condition Whether or not it's appropriate, labels have been first-class types since r51511. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214908 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index d6de07a951c..0fa53019df1 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2249,7 +2249,7 @@ Value *LLParser::PerFunctionState::GetVal(const std::string &Name, } // Don't make placeholders with invalid type. - if (!Ty->isFirstClassType() && !Ty->isLabelTy()) { + if (!Ty->isFirstClassType()) { P.Error(Loc, "invalid use of a non-first-class type"); return nullptr; } @@ -2290,7 +2290,7 @@ Value *LLParser::PerFunctionState::GetVal(unsigned ID, Type *Ty, return nullptr; } - if (!Ty->isFirstClassType() && !Ty->isLabelTy()) { + if (!Ty->isFirstClassType()) { P.Error(Loc, "invalid use of a non-first-class type"); return nullptr; }