aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-10-19 13:01:41 +0200
committerBjörn Gustavsson <[email protected]>2018-10-19 13:02:36 +0200
commit31562b636b1c89595c2bb4bb81bc7f781e6bd269 (patch)
tree039750326e64f7c3149448370245294a1039effb /lib/hipe
parent7851fcd2170c20b8a2331e8615b03632d7aec4fc (diff)
downloadotp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.tar.gz
otp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.tar.bz2
otp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.zip
hipe: Don't use beam_lib:info/1 with an atom as filename
Diffstat (limited to 'lib/hipe')
-rw-r--r--lib/hipe/main/hipe.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/main/hipe.erl b/lib/hipe/main/hipe.erl
index ac2e6c1e3b..e2cb9c0f0b 100644
--- a/lib/hipe/main/hipe.erl
+++ b/lib/hipe/main/hipe.erl
@@ -542,7 +542,7 @@ file(File) ->
| {'error', term()}
when Mod :: mod().
file(File, Options) when is_atom(File) ->
- case beam_lib:info(File) of
+ case beam_lib:info(atom_to_list(File)) of
L when is_list(L) ->
{module, Mod} = lists:keyfind(module, 1, L),
case compile(Mod, File, Options) of