[llvm] r214908 - Remove dead code in condition

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Aug 5 11:22:58 PDT 2014


Author: dexonsmith
Date: Tue Aug  5 13:22:58 2014
New Revision: 214908

URL: http://llvm.org/viewvc/llvm-project?rev=214908&view=rev
Log:
Remove dead code in condition

Whether or not it's appropriate, labels have been first-class types
since r51511.

Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=214908&r1=214907&r2=214908&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Tue Aug  5 13:22:58 2014
@@ -2249,7 +2249,7 @@ Value *LLParser::PerFunctionState::GetVa
   }
 
   // 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::GetVa
     return nullptr;
   }
 
-  if (!Ty->isFirstClassType() && !Ty->isLabelTy()) {
+  if (!Ty->isFirstClassType()) {
     P.Error(Loc, "invalid use of a non-first-class type");
     return nullptr;
   }





More information about the llvm-commits mailing list