diff options
author | Kostis Sagonas <[email protected]> | 2016-10-18 14:03:41 +0200 |
---|---|---|
committer | Kostis Sagonas <[email protected]> | 2016-10-18 14:03:41 +0200 |
commit | a79e2569f5a6d6a622bd78b04326a6ad976c0a4c (patch) | |
tree | f918a449a903f06f5a0870f3a0f2b4d59bcd44c7 /lib/kernel/src/hipe_unified_loader.erl | |
parent | 0c7e4330ddced978934dd63520795554b29244a2 (diff) | |
download | otp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.tar.gz otp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.tar.bz2 otp-a79e2569f5a6d6a622bd78b04326a6ad976c0a4c.zip |
Restore the erroneously taken out assertion
Diffstat (limited to 'lib/kernel/src/hipe_unified_loader.erl')
-rw-r--r-- | lib/kernel/src/hipe_unified_loader.erl | 5 |
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, |