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 | |
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')
-rw-r--r-- | test/unit.fromasm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index 7ac63bfcc..ec97a3320 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -1164,7 +1164,6 @@ ) (func $keepAlive (local $0 i32) - (local $1 i32) (drop (call $sqrts (f64.const 3.14159) @@ -1200,7 +1199,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) |