From 4927777d089c56001098781f8923dd4292b148ad Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 12 Sep 2018 18:35:24 +0200 Subject: Simplified code. Bug 24067 --- backend/Asmexpandaux.ml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'backend/Asmexpandaux.ml') diff --git a/backend/Asmexpandaux.ml b/backend/Asmexpandaux.ml index 1b250457..f5c76925 100644 --- a/backend/Asmexpandaux.ml +++ b/backend/Asmexpandaux.ml @@ -153,10 +153,10 @@ let expand_debug id sp preg simple l = aux None scopes rest end | (Pbuiltin(EF_annot (kind, _, _),_,_) as annot)::rest -> - if P.to_int kind = 2 && lbl_follows rest then begin - simple annot; simple builtin_nop; aux None scopes rest - end else - simple annot; aux None scopes rest + simple annot; + if P.to_int kind = 2 && lbl_follows rest then + simple builtin_nop; + aux None scopes rest | (Plabel lbl)::rest -> simple (Plabel lbl); aux (Some lbl) scopes rest | i::rest -> simple i; aux None scopes rest in (* We need to move all closing debug annotations before the last real statement *) @@ -174,10 +174,10 @@ let expand_debug id sp preg simple l = let expand_simple simple l = let rec aux = function | (Pbuiltin(EF_annot (kind, _, _),_,_) as annot)::rest -> - if P.to_int kind = 2 && lbl_follows rest then begin - simple annot; simple builtin_nop; aux rest - end else - simple annot; aux rest + simple annot; + if P.to_int kind = 2 && lbl_follows rest then + simple builtin_nop; + aux rest | i::rest -> simple i; aux rest | [] -> () in aux l -- cgit