summaryrefslogtreecommitdiff
path: root/src/passes/Inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r--src/passes/Inlining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index 5737359a3..c8c8a3f7b 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -84,7 +84,7 @@ struct FunctionInfo {
// about size, and if it's lightweight so a good candidate for
// speeding us up.
return options.optimizeLevel >= 3 && options.shrinkLevel == 0 &&
- lightweight;
+ (lightweight || options.inlining.allowHeavyweight);
}
};