summaryrefslogtreecommitdiff
path: root/src/passes/ConstHoisting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r--src/passes/ConstHoisting.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp
index f67a48645..749a3361f 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -72,8 +72,9 @@ struct ConstHoisting : public WalkerPass<PostWalker<ConstHoisting>> {
private:
bool worthHoisting(Literal value, Index num) {
- if (num < MIN_USES)
+ if (num < MIN_USES) {
return false;
+ }
// measure the size of the constant
Index size = 0;
switch (value.type) {