Skip to content

Commit

Permalink
Fixed wrong ordering of instructions in trans_call
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Stavrakakis authored and yiannist committed Mar 5, 2014
1 parent ee38597 commit c16f510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hipe/llvm/hipe_rtl2llvm.erl
Expand Up @@ -384,10 +384,10 @@ trans_call(I) ->
%% Call With Exception
FailLabelNum ->
TrueLabel = "LC"++mk_num(),
I3 = hipe_llvm:mk_label(TrueLabel),
FailLabel = mk_jump_label(FailLabelNum),
I4 = hipe_llvm:mk_invoke(T1, "cc 11", [], "{i64, i64, i64, i64, i64,
I3 = hipe_llvm:mk_invoke(T1, "cc 11", [], "{i64, i64, i64, i64, i64,
i64}", "@"++Name, FinalArgs, [], "%"++TrueLabel, FailLabel),
I4 = hipe_llvm:mk_label(TrueLabel),
[I4, I3]
end,
I5 = store_call_regs(FixedRegs, T1),
Expand Down

0 comments on commit c16f510

Please sign in to comment.