summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-10-16 13:44:41 -0700
committerGitHub <noreply@github.com>2023-10-16 20:44:41 +0000
commit46df199c9041a6e9031617021714328352d0979b (patch)
tree942a8f308c1cab91d29eaa076efc25599ebd56eb /src
parentd77f9abf6113f92fea7e38cee1334c822e51e31e (diff)
downloadbinaryen-46df199c9041a6e9031617021714328352d0979b.tar.gz
binaryen-46df199c9041a6e9031617021714328352d0979b.tar.bz2
binaryen-46df199c9041a6e9031617021714328352d0979b.zip
GUFA: Add missing set of optimized boolean (#6010)
Without marking us as having optimized we didn't refinalize, and broke validation.
Diffstat (limited to 'src')
-rw-r--r--src/passes/GUFA.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/GUFA.cpp b/src/passes/GUFA.cpp
index 0bcb5eb80..513b2cf3d 100644
--- a/src/passes/GUFA.cpp
+++ b/src/passes/GUFA.cpp
@@ -284,6 +284,7 @@ struct GUFAOptimizer
// a cast. However, to be careful with code size, we only refine existing
// here. See addNewCasts() for where we add entirely new casts.
curr->type = inferredType;
+ optimized = true;
}
// Apply the usual optimizations as well, such as potentially replacing this