aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/main/hipe.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-10-24 12:50:16 +0200
committerGitHub <[email protected]>2018-10-24 12:50:16 +0200
commitb50e4cfd3c48212642799e5a6be8d425a59e4b72 (patch)
tree4812bc5ea194b6c321a62f41cc4d710401463542 /lib/hipe/main/hipe.erl
parent2b30ac551d3febf0233f26176f4706a009e840d2 (diff)
parent131ff5fac7da80fe8080425182bf29f673ab301c (diff)
downloadotp-b50e4cfd3c48212642799e5a6be8d425a59e4b72.tar.gz
otp-b50e4cfd3c48212642799e5a6be8d425a59e4b72.tar.bz2
otp-b50e4cfd3c48212642799e5a6be8d425a59e4b72.zip
Merge pull request #1992 from bjorng/bjorn/stdlib/beam_lib/ERL-696
beam_lib: Clarify the beam() type in code and documentation OTP-15378
Diffstat (limited to 'lib/hipe/main/hipe.erl')
-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