diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-08-05 18:22:58 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-08-05 18:22:58 +0000 |
commit | 6a6e9cb50ca61f3dea02ef567c6d8a92bbb722e5 (patch) | |
tree | 9c9c6dfa9291da884073dac343fdf1af39664de8 /llvm/lib/AsmParser/LLParser.cpp | |
parent | 05b0798916f01690b5903302e51f3136274e291f (diff) | |
download | bcm5719-llvm-6a6e9cb50ca61f3dea02ef567c6d8a92bbb722e5.tar.gz bcm5719-llvm-6a6e9cb50ca61f3dea02ef567c6d8a92bbb722e5.zip |
Remove dead code in condition
Whether or not it's appropriate, labels have been first-class types
since r51511.
llvm-svn: 214908
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index d6de07a951c..0fa53019df1 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/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; } |