mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
8d7feda9f8
commit
b72118fb52
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user