diff options
Diffstat (limited to 'src/passes/Vacuum.cpp')
-rw-r--r-- | src/passes/Vacuum.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/passes/Vacuum.cpp b/src/passes/Vacuum.cpp index c89a57976..506eee5e6 100644 --- a/src/passes/Vacuum.cpp +++ b/src/passes/Vacuum.cpp @@ -297,9 +297,7 @@ struct Vacuum : public WalkerPass<ExpressionStackWalker<Vacuum>> { BranchUtils::BranchSeeker seeker(block->name); Expression* temp = block; seeker.walk(temp); - Type supertype; - if (seeker.found && Type::getSuperType(seeker.types, supertype) && - supertype != Type::none) { + if (seeker.found && Type::hasLeastUpperBound(seeker.types)) { canPop = false; } } |