1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Remove dead code in condition

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

llvm-svn: 214908
This commit is contained in:
Duncan P. N. Exon Smith 2014-08-05 18:22:58 +00:00
parent b1c451ece2
commit abe071addb

View File

@ -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;
}