summaryrefslogtreecommitdiff
path: root/src/ir/ordering.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-07-13 16:43:36 -0700
committerGitHub <noreply@github.com>2022-07-13 16:43:36 -0700
commit555ba8fc6787e4425c24c60e2f419bd7826b422a (patch)
tree4045e3e9a9313f35ae33d2dda144ca5ddb5524b5 /src/ir/ordering.h
parent9671e95adbfcf0984a7e9800a7ea2ed33e1670ad (diff)
downloadbinaryen-555ba8fc6787e4425c24c60e2f419bd7826b422a.tar.gz
binaryen-555ba8fc6787e4425c24c60e2f419bd7826b422a.tar.bz2
binaryen-555ba8fc6787e4425c24c60e2f419bd7826b422a.zip
[Wasm GC] GTO should not reorder trapping of removed sets (#4801)
Minor fuzz bug. When we replace a struct.set with its children we also add a ref.as_non_null on the reference, but that must not occur before effects in the other child.
Diffstat (limited to 'src/ir/ordering.h')
-rw-r--r--src/ir/ordering.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ir/ordering.h b/src/ir/ordering.h
index 55163759c..ed2c00ee2 100644
--- a/src/ir/ordering.h
+++ b/src/ir/ordering.h
@@ -34,11 +34,11 @@ namespace wasm {
//
// (temp = first, second, temp)
//
-Expression* getResultOfFirst(Expression* first,
- Expression* second,
- Function* func,
- Module* wasm,
- const PassOptions& passOptions) {
+inline Expression* getResultOfFirst(Expression* first,
+ Expression* second,
+ Function* func,
+ Module* wasm,
+ const PassOptions& passOptions) {
assert(first->type.isConcrete());
Builder builder(*wasm);