fix br_if typing

This commit is contained in:
Ilya Rezvov committed 2018-04-14 16:31:21 -07:00
1 parent d0b1092064
commit 681e0e3eca
3 files changed
+2 -69

No files matched your search

+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