Skip to content

Commit

Permalink
wrong location used in the stack when reporting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blerner committed Jun 26, 2014
1 parent a71dd67 commit ca6e870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arr/compiler/anf-loop-compiler.arr
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ fun compile-fun-body(l :: Loc, step :: String, fun-name :: String, compiler, arg
])),
j-if1(rt-method("isPyretException", [list: j-id(e)]),
j-block([list:
j-expr(add-stack-frame(e, local-compiler.get-loc(l)))
j-expr(add-stack-frame(e, j-id(apploc)))
])),
j-throw(j-id(e))]))
])
Expand Down

0 comments on commit ca6e870

Please sign in to comment.