Commit 5f00461a authored by Michael D. Adams's avatar Michael D. Adams
Browse files

Ensure no statements after CmmReturn are emitted

parent e85fc273
...@@ -247,6 +247,7 @@ flattenCgStmts id stmts = ...@@ -247,6 +247,7 @@ flattenCgStmts id stmts =
isJump (CmmJump _ _) = True isJump (CmmJump _ _) = True
isJump (CmmBranch _) = True isJump (CmmBranch _) = True
isJump (CmmSwitch _ _) = True isJump (CmmSwitch _ _) = True
isJump (CmmReturn _) = True
isJump _ = False isJump _ = False
isOrdinaryStmt (CgStmt _) = True isOrdinaryStmt (CgStmt _) = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment