aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2015-05-12 11:23:45 +0200
committerKostis Sagonas <[email protected]>2015-05-27 16:16:44 +0200
commitd8ffbe44ab6b01c61157b60ea72640b236d91979 (patch)
tree15357201db1e8cd4e05cfa0e56fefb347c99d0df /lib/hipe
parentce96ab6d64768cd6536011ccdecc08191c238220 (diff)
downloadotp-d8ffbe44ab6b01c61157b60ea72640b236d91979.tar.gz
otp-d8ffbe44ab6b01c61157b60ea72640b236d91979.tar.bz2
otp-d8ffbe44ab6b01c61157b60ea72640b236d91979.zip
Replace call to erlang:now() with appropriate call to 18.0 BIF
Diffstat (limited to 'lib/hipe')
-rw-r--r--lib/hipe/llvm/hipe_llvm_main.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/llvm/hipe_llvm_main.erl b/lib/hipe/llvm/hipe_llvm_main.erl
index 0e50c9539b..3c24425828 100644
--- a/lib/hipe/llvm/hipe_llvm_main.erl
+++ b/lib/hipe/llvm/hipe_llvm_main.erl
@@ -465,7 +465,7 @@ remove_temp_folder(Dir, Options) ->
end.
unique_id(FunName, Arity) ->
- integer_to_list(erlang:phash2({FunName, Arity, now()})).
+ integer_to_list(erlang:phash2({FunName, Arity, erlang:unique_integer()})).
unique_folder(FunName, Arity, Options) ->
DirName = "llvm_" ++ unique_id(FunName, Arity) ++ "/",