aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-05-22 10:03:04 +0200
committerHans Bolinder <[email protected]>2018-05-22 10:03:04 +0200
commitdd3d4d3e7848c63406c346a8ec600b96130da56e (patch)
tree9614cb795bb064fd5d5cd83524ed588213d0731a
parent5ec78bc5314f5b32ba28bae4d95f12ffa28469ca (diff)
downloadotp-dd3d4d3e7848c63406c346a8ec600b96130da56e.tar.gz
otp-dd3d4d3e7848c63406c346a8ec600b96130da56e.tar.bz2
otp-dd3d4d3e7848c63406c346a8ec600b96130da56e.zip
hipe: Fix elimination of erlang:get_stacktrace/0
-rw-r--r--lib/hipe/main/hipe.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hipe/main/hipe.erl b/lib/hipe/main/hipe.erl
index 5e6a60326d..ac2e6c1e3b 100644
--- a/lib/hipe/main/hipe.erl
+++ b/lib/hipe/main/hipe.erl
@@ -852,8 +852,8 @@ finalize_fun_sequential({MFA, Icode}, Opts, Servers) ->
print_crash_message(What, Error, StackTrace) ->
StackFun = fun(_,_,_) -> false end,
FormatFun = fun (Term, _) -> io_lib:format("~p", [Term]) end,
- StackTrace = erl_error:format_stacktrace(1, StackTrace,
- StackFun, FormatFun),
+ StackTraceS = erl_error:format_stacktrace(1, StackTrace,
+ StackFun, FormatFun),
WhatS = case What of
{M,F,A} -> io_lib:format("~w:~w/~w", [M,F,A]);
Mod -> io_lib:format("~w", [Mod])
@@ -862,7 +862,7 @@ print_crash_message(What, Error, StackTrace) ->
"while compiling ~s~n"
"crash reason: ~p~n"
"~s~n",
- [WhatS, Error, StackTrace]).
+ [WhatS, Error, StackTraceS]).
pp_server_start(Opts) ->
set_architecture(Opts),