From eac10af80aff678e2d9072b52a8ab3f1241eb834 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Wed, 29 May 2024 16:11:36 +0200 Subject: [PATCH] compiler: beam_ssa_destructive_update: Correct comment typos --- lib/compiler/src/beam_ssa_destructive_update.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler/src/beam_ssa_destructive_update.erl b/lib/compiler/src/beam_ssa_destructive_update.erl index 9cf9d814c97..d7a5594797f 100644 --- a/lib/compiler/src/beam_ssa_destructive_update.erl +++ b/lib/compiler/src/beam_ssa_destructive_update.erl @@ -140,7 +140,7 @@ opt(StMap, FuncDb) -> ForceCopy, StMap, FuncDb) catch throw:too_deep -> - %% Give up and leave the module onmodified. + %% Give up and leave the module unmodified. {StMap,FuncDb} end. @@ -268,7 +268,7 @@ patch_instructions(Applicable, InitialsToPatch, ForceCopy, StMap0, FuncDb) -> ?DP("Initial values to patch :~n ~p~n", [InitialsToPatch]), ?DP("Force copy :~n ~p~n", [ForceCopy]), %% Merge instructions and initial values so we only get one map - %% per fuctions which is indexed on the variable. + %% per function which is indexed on the variable. Merge = fun(A, B) -> maps:fold(fun(VarOrLbl, Info0, Acc) ->