File 2922-compile-Remove-unreachable-clause-in-save_binary-2.patch of Package erlang
From ee4db127a78033ed645780585e83e593d1bd6b48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Fri, 12 Feb 2021 09:51:05 +0100
Subject: [PATCH 12/18] compile: Remove unreachable clause in save_binary/2
---
lib/compiler/src/compile.erl | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 356d5eb014..a2d979e32b 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1640,7 +1640,6 @@ effects_code_generation(Option) ->
_ -> true
end.
-save_binary(none, St) -> {ok,none,St};
save_binary(Code, #compile{module=Mod,ofile=Outfile,options=Opts}=St) ->
%% Test that the module name and output file name match.
case member(no_error_module_mismatch, Opts) of
--
2.26.2