From e00e7b691adeae3e96d7d6d85d5cbed70c55aeea Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 6 Aug 2018 16:35:59 +0200 Subject: [PATCH] Move memcpy/memset comments before statement. --- ICSharpCode.Decompiler/CSharp/StatementBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs b/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs index 64609dfd3..bf6256f0e 100644 --- a/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/StatementBuilder.cs @@ -961,7 +961,7 @@ namespace ICSharpCode.Decompiler.CSharp exprBuilder.Translate(inst.Size) } }); - stmt.AddChild(new Comment(" IL initblk instruction"), Roles.Comment); + stmt.InsertChildAfter(null, new Comment(" IL initblk instruction"), Roles.Comment); return stmt; } @@ -975,7 +975,7 @@ namespace ICSharpCode.Decompiler.CSharp exprBuilder.Translate(inst.Size) } }); - stmt.AddChild(new Comment(" IL cpblk instruction"), Roles.Comment); + stmt.InsertChildAfter(null, new Comment(" IL cpblk instruction"), Roles.Comment); return stmt; } }