https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/146589
This was only accidentally dropped, so add it back. >From 6cf4ca471adacf319acf1fb73e60f664540ac88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbae...@redhat.com> Date: Tue, 1 Jul 2025 20:46:18 +0200 Subject: [PATCH] [clang][bytecode] Add back missing initialize call This was only accidentally dropped, so add it back. --- clang/lib/AST/ByteCode/Interp.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h index dcc4587751974..473106920def3 100644 --- a/clang/lib/AST/ByteCode/Interp.h +++ b/clang/lib/AST/ByteCode/Interp.h @@ -552,11 +552,6 @@ inline bool Divc(InterpState &S, CodePtr OpPC) { HandleComplexComplexDiv(A, B, C, D, ResR, ResI); // Copy into the result. - // Result.atIndex(0).deref<Floating>() = Floating(ResR); - // Result.atIndex(0).initialize(); - // Result.atIndex(1).deref<Floating>() = Floating(ResI); - // Result.atIndex(1).initialize(); - Floating RA = S.allocFloat(A.getSemantics()); RA.copy(ResR); Result.atIndex(0).deref<Floating>() = RA; // Floating(ResR); @@ -565,6 +560,7 @@ inline bool Divc(InterpState &S, CodePtr OpPC) { Floating RI = S.allocFloat(A.getSemantics()); RI.copy(ResI); Result.atIndex(1).deref<Floating>() = RI; // Floating(ResI); + Result.atIndex(1).initialize(); Result.initialize(); } else { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits