diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-08-10 19:55:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-10 19:55:28 -0700 |
commit | 5295929fd239ea8a760cd2c3f65510da9972c33c (patch) | |
tree | c045323a48264f4f65fdd1cb01c7793f052814a4 /test/unit.fromasm.clamp | |
parent | 4f0bf336e0e04ec349c7524d86ffd2c4066cb644 (diff) | |
download | binaryen-5295929fd239ea8a760cd2c3f65510da9972c33c.tar.gz binaryen-5295929fd239ea8a760cd2c3f65510da9972c33c.tar.bz2 binaryen-5295929fd239ea8a760cd2c3f65510da9972c33c.zip |
when inlining, we must zero out non-param locals, as their initial zero value may be depended on (#1127)
Diffstat (limited to 'test/unit.fromasm.clamp')
-rw-r--r-- | test/unit.fromasm.clamp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit.fromasm.clamp b/test/unit.fromasm.clamp index 8f3e387ae..b110204f9 100644 --- a/test/unit.fromasm.clamp +++ b/test/unit.fromasm.clamp @@ -1188,7 +1188,6 @@ ) (func $keepAlive (local $0 i32) - (local $1 i32) (drop (call $sqrts (f64.const 3.14159) @@ -1224,7 +1223,9 @@ (i32.const 17) ) (call_indirect $FUNCSIG$vi - (get_local $1) + (tee_local $0 + (i32.const 0) + ) (block (result i32) (set_global $Int (i32.const 1) |