aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/main
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2017-02-03 11:45:48 +0100
committerRichard Carlsson <[email protected]>2017-02-06 15:36:21 +0100
commit64c8b0b2b1fc028b1cb0913d822138ba24d28a7b (patch)
treea881b45035a9cd2426b25def40c67d993ba79b16 /lib/hipe/main
parent0eb45e21d406539caaad98bfc1740f9a11e32565 (diff)
downloadotp-64c8b0b2b1fc028b1cb0913d822138ba24d28a7b.tar.gz
otp-64c8b0b2b1fc028b1cb0913d822138ba24d28a7b.tar.bz2
otp-64c8b0b2b1fc028b1cb0913d822138ba24d28a7b.zip
Update use of filename:find_src/1 in hipe.erl
Diffstat (limited to 'lib/hipe/main')
-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 90ef84ca51..06facae5c1 100644
--- a/lib/hipe/main/hipe.erl
+++ b/lib/hipe/main/hipe.erl
@@ -441,7 +441,7 @@ compile(Name, File, Opts0) when is_atom(Name) ->
?error_msg("Cannot get Core Erlang code from BEAM binary.",[]),
?EXIT({cant_compile_core_from_binary});
true ->
- case filename:find_src(filename:rootname(File, ".beam")) of
+ case filelib:find_source(filename:rootname(File,".beam") ++ ".beam") of
{error, _} ->
?error_msg("Cannot find source code for ~p.", [File]),
?EXIT({cant_find_source_code});