aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_callgraph.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-20 16:18:15 +0100
committerFredrik Gustafsson <[email protected]>2013-02-20 16:18:15 +0100
commit47f3fc9c5d19b9606a5b4918624bfb6e94df6c85 (patch)
tree60c90209a1983110fadbc0fb598c3d68f701bb06 /lib/dialyzer/src/dialyzer_callgraph.erl
parentcff50efe0cd9dd3e70341142d52b1865a58ea41e (diff)
parent1fa2ed988cf693141d4da9d760f0cad914046fbb (diff)
downloadotp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.tar.gz
otp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.tar.bz2
otp-47f3fc9c5d19b9606a5b4918624bfb6e94df6c85.zip
Merge branch 'ks/dialyzer-R16B-final-fixes/OTP-10865'
* ks/dialyzer-R16B-final-fixes/OTP-10865: Native code compilation changes Code simplification Simplify a case construct using inequality Simplify a case construct using a boolean operator Code simplifications + take out obsolete note
Diffstat (limited to 'lib/dialyzer/src/dialyzer_callgraph.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_callgraph.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dialyzer/src/dialyzer_callgraph.erl b/lib/dialyzer/src/dialyzer_callgraph.erl
index 64e0ee88af..9e9226fa5a 100644
--- a/lib/dialyzer/src/dialyzer_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_callgraph.erl
@@ -798,10 +798,7 @@ condensation(G) ->
fun({V1, V2}) ->
I1 = ets:lookup_element(V2I, V1, 2),
I2 = ets:lookup_element(V2I, V2, 2),
- case I1 =:= I2 of
- true -> true;
- false -> ets:insert(I2I, {I1, I2})
- end
+ I1 =:= I2 orelse ets:insert(I2I, {I1, I2})
end,
lists:foreach(Fun1, digraph:edges(G)),
Fun3 =