fix br_if typing

This commit is contained in:
Ilya Rezvov
2018-04-14 16:31:21 -07:00
parent d0b1092064
commit 681e0e3eca
3 changed files with 2 additions and 69 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ getInstrType (Br lbl) = do
return $ (Any : r) ==> Any
getInstrType (BrIf lbl) = do
r <- map Val . maybeToList <$> getLabel lbl
return $ ([Val I32]) ==> empty
return $ (r ++ [Val I32]) ==> r
getInstrType (BrTable lbls lbl) = do
r <- getLabel lbl
rs <- mapM getLabel lbls