[clang] 984c78f - [clang][bytecode] Add back missing initialize call (#146589)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 22:15:51 PDT 2025
Author: Timm Baeder
Date: 2025-07-02T07:15:47+02:00
New Revision: 984c78f27d1475390d9564b099a8550ad494dfd7
URL: https://github.com/llvm/llvm-project/commit/984c78f27d1475390d9564b099a8550ad494dfd7
DIFF: https://github.com/llvm/llvm-project/commit/984c78f27d1475390d9564b099a8550ad494dfd7.diff
LOG: [clang][bytecode] Add back missing initialize call (#146589)
This was only accidentally dropped, so add it back.
Added:
Modified:
clang/lib/AST/ByteCode/Interp.h
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h
index 94ab59cc59c98..f9623131809e5 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 {
More information about the cfe-commits
mailing list