[gardening] Remove redundant logic

This commit is contained in:
practicalswift
2017-04-11 23:04:55 +02:00
parent 3623d408ca
commit 5e255e07d7
23 changed files with 39 additions and 118 deletions

View File

@@ -369,9 +369,7 @@ namespace {
bool visitRefTailAddrInst(RefTailAddrInst *RHS) {
auto *X = cast<RefTailAddrInst>(LHS);
if (X->getTailType() != RHS->getTailType())
return false;
return true;
return X->getTailType() == RHS->getTailType();
}
bool visitStructElementAddrInst(const StructElementAddrInst *RHS) {
@@ -447,9 +445,7 @@ namespace {
bool visitTailAddrInst(TailAddrInst *RHS) {
auto *X = cast<TailAddrInst>(LHS);
if (X->getTailType() != RHS->getTailType())
return false;
return true;
return X->getTailType() == RHS->getTailType();
}
bool visitCondFailInst(CondFailInst *RHS) {