aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_ssa_opt.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-02-01 13:31:02 +0100
committerJohn Högberg <[email protected]>2019-02-04 13:06:11 +0100
commitbb04e5050ab1390b31d230e5fb9f2c4140bac8a6 (patch)
tree4ee3da248fade275f0d4c425a4374b073c0863d0 /lib/compiler/src/beam_ssa_opt.erl
parent6f2171c6f33baddb2afac8e1dd982c839aefcd2f (diff)
downloadotp-bb04e5050ab1390b31d230e5fb9f2c4140bac8a6.tar.gz
otp-bb04e5050ab1390b31d230e5fb9f2c4140bac8a6.tar.bz2
otp-bb04e5050ab1390b31d230e5fb9f2c4140bac8a6.zip
beam_ssa_opt: Fix function name printing in sub-pass crash dump
Diffstat (limited to 'lib/compiler/src/beam_ssa_opt.erl')
-rw-r--r--lib/compiler/src/beam_ssa_opt.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_ssa_opt.erl b/lib/compiler/src/beam_ssa_opt.erl
index ca5eefe4fc..f177f6d7fe 100644
--- a/lib/compiler/src/beam_ssa_opt.erl
+++ b/lib/compiler/src/beam_ssa_opt.erl
@@ -84,7 +84,7 @@ phase([FuncId | Ids], Ps, StMap, FuncDb0) ->
phase(Ids, Ps, StMap#{ FuncId => St }, FuncDb)
catch
Class:Error:Stack ->
- #b_local{name=Name,arity=Arity} = FuncId,
+ #b_local{name=#b_literal{val=Name},arity=Arity} = FuncId,
io:fwrite("Function: ~w/~w\n", [Name,Arity]),
erlang:raise(Class, Error, Stack)
end;