diff options
author | Sverker Eriksson <[email protected]> | 2016-10-17 11:32:38 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-10-17 11:32:38 +0200 |
commit | 2b2de6173d4ba5506ae9b1692a19e01cf0d299c8 (patch) | |
tree | 1d2562b2781c281254b63820351b93e906ca2337 /lib/kernel | |
parent | 06c111265748b3e6eddc8252af055449d8cb83f4 (diff) | |
download | otp-2b2de6173d4ba5506ae9b1692a19e01cf0d299c8.tar.gz otp-2b2de6173d4ba5506ae9b1692a19e01cf0d299c8.tar.bz2 otp-2b2de6173d4ba5506ae9b1692a19e01cf0d299c8.zip |
kernel,hipe: Fix dialyzer warnings
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/src/code.erl | 4 | ||||
-rw-r--r-- | lib/kernel/src/hipe_unified_loader.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index 8d0a2fbf66..622b27080c 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -116,8 +116,8 @@ get_chunk(_, _) -> is_module_native(_) -> erlang:nif_error(undef). --spec make_stub_module(Module, Beam, Info) -> Module when - Module :: module(), +-spec make_stub_module(LoaderState, Beam, Info) -> module() when + LoaderState :: binary(), Beam :: binary(), Info :: {list(), list(), binary()}. diff --git a/lib/kernel/src/hipe_unified_loader.erl b/lib/kernel/src/hipe_unified_loader.erl index 03116758de..a7e30a048f 100644 --- a/lib/kernel/src/hipe_unified_loader.erl +++ b/lib/kernel/src/hipe_unified_loader.erl @@ -772,7 +772,7 @@ find_const(ConstNo, []) -> add_ref(CalleeMFA, Address, FunDefs, RefType, Trampoline, RemoteOrLocal) -> CallerMFA = address_to_mfa_lth(Address, FunDefs), - case RemoteOrLocal of + _ = case RemoteOrLocal of local -> %% just a sanity assertion {M,_,_} = CalleeMFA, |