aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2016-10-18 14:03:41 +0200
committerKostis Sagonas <[email protected]>2016-10-18 14:03:41 +0200
commita79e2569f5a6d6a622bd78b04326a6ad976c0a4c (patch)
treef918a449a903f06f5a0870f3a0f2b4d59bcd44c7 /lib
parent0c7e4330ddced978934dd63520795554b29244a2 (diff)
downloadotp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.tar.gz
otp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.tar.bz2
otp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.zip
Restore the erroneously taken out assertion
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/hipe_unified_loader.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/src/hipe_unified_loader.erl b/lib/kernel/src/hipe_unified_loader.erl
index ce7408a3cc..04ec1479cb 100644
--- a/lib/kernel/src/hipe_unified_loader.erl
+++ b/lib/kernel/src/hipe_unified_loader.erl
@@ -774,8 +774,9 @@ add_ref(CalleeMFA, Address, FunDefs, RefType, Trampoline, RemoteOrLocal) ->
CallerMFA = address_to_mfa_lth(Address, FunDefs),
case RemoteOrLocal of
local ->
- %% just a sanity assertion
- {_M,_,_} = CalleeMFA,
+ %% assert that the callee and caller are from the same module
+ {M,_,_} = CalleeMFA,
+ {M,_,_} = CallerMFA,
ok;
remote ->
hipe_bifs:add_ref(CalleeMFA, {CallerMFA,Address,RefType,Trampoline,