diff options
author | Alon Zakai <azakai@google.com> | 2020-03-17 14:55:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 14:55:50 -0700 |
commit | 595d8a3f360b7642a82459ea0ed0a825b0dd7043 (patch) | |
tree | 8f1fbc8ff118daeda686bb60f79989a841288773 /src/tools | |
parent | 38a795c48e269b92a1e6c54682a436ce23339a8d (diff) | |
download | binaryen-595d8a3f360b7642a82459ea0ed0a825b0dd7043.tar.gz binaryen-595d8a3f360b7642a82459ea0ed0a825b0dd7043.tar.bz2 binaryen-595d8a3f360b7642a82459ea0ed0a825b0dd7043.zip |
makeConstExpression => makeConstantExpression (#2698)
The meaning we intend is "constant", and not the "Const"
node (which contains a number). So I think the full
name is less confusing.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/wasm-reduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 6ba5c5b83..675d5a025 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -1015,7 +1015,7 @@ struct Reducer } if (curr->type.isMulti()) { Expression* n = - builder->makeConstExpression(Literal::makeZero(curr->type)); + builder->makeConstantExpression(Literal::makeZero(curr->type)); return tryToReplaceCurrent(n); } Const* c = builder->makeConst(Literal(int32_t(0))); |