diff options
author | Hans Bolinder <[email protected]> | 2017-06-28 15:40:42 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-07-06 17:53:23 +0200 |
commit | e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7 (patch) | |
tree | c2472cf3471fc85a22120be366fd68315569d927 /lib/hipe/main | |
parent | 6e770e804b294217181550f0caa1a2ebcbd08e32 (diff) | |
download | otp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.tar.gz otp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.tar.bz2 otp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.zip |
hipe: Do not use deprecated functions in string(3)
Should probably be left for the HiPE team to fix
Diffstat (limited to 'lib/hipe/main')
-rw-r--r-- | lib/hipe/main/hipe.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hipe/main/hipe.erl b/lib/hipe/main/hipe.erl index 19b4e8bfe2..f5f5bf5830 100644 --- a/lib/hipe/main/hipe.erl +++ b/lib/hipe/main/hipe.erl @@ -1616,11 +1616,11 @@ llvm_support_available() -> get_llvm_version() -> OptStr = os:cmd("opt -version"), SubStr = "LLVM version ", N = length(SubStr), - case string:str(OptStr, SubStr) of - 0 -> % No opt available + case string:find(OptStr, SubStr) of + nomatch -> % No opt available {0, 0}; S -> - case string:tokens(string:sub_string(OptStr, S + N), ".") of + case string:lexemes(string:slice(S, N), ".") of [MajorS, MinorS | _] -> case {string:to_integer(MajorS), string:to_integer(MinorS)} of {{Major, ""}, {Minor, _}} |