diff options
author | Björn Gustavsson <[email protected]> | 2018-10-19 13:01:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-10-19 13:02:36 +0200 |
commit | 31562b636b1c89595c2bb4bb81bc7f781e6bd269 (patch) | |
tree | 039750326e64f7c3149448370245294a1039effb | |
parent | 7851fcd2170c20b8a2331e8615b03632d7aec4fc (diff) | |
download | otp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.tar.gz otp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.tar.bz2 otp-31562b636b1c89595c2bb4bb81bc7f781e6bd269.zip |
hipe: Don't use beam_lib:info/1 with an atom as filename
-rw-r--r-- | lib/hipe/main/hipe.erl | 2 |
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 |