diff options
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r-- | src/ir/properties.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h index 301f15e16..4b73b7211 100644 --- a/src/ir/properties.h +++ b/src/ir/properties.h @@ -527,7 +527,10 @@ inline bool canEmitSelectWithArms(Expression* ifTrue, Expression* ifFalse) { // the latter because calls are already handled best in other manners (using // EffectAnalyzer). // -bool isGenerative(Expression* curr, FeatureSet features); +bool isGenerative(Expression* curr); + +// As above, but only checks |curr| and not children. +bool isShallowlyGenerative(Expression* curr); // Whether this expression is valid in a context where WebAssembly requires a // constant expression, such as a global initializer. |