Skip to content

Commit 984c78f

Browse files
authored
[clang][bytecode] Add back missing initialize call (#146589)
This was only accidentally dropped, so add it back.
1 parent c9bfdae commit 984c78f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/AST/ByteCode/Interp.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,6 @@ inline bool Divc(InterpState &S, CodePtr OpPC) {
552552
HandleComplexComplexDiv(A, B, C, D, ResR, ResI);
553553

554554
// Copy into the result.
555-
// Result.atIndex(0).deref<Floating>() = Floating(ResR);
556-
// Result.atIndex(0).initialize();
557-
// Result.atIndex(1).deref<Floating>() = Floating(ResI);
558-
// Result.atIndex(1).initialize();
559-
560555
Floating RA = S.allocFloat(A.getSemantics());
561556
RA.copy(ResR);
562557
Result.atIndex(0).deref<Floating>() = RA; // Floating(ResR);
@@ -565,6 +560,7 @@ inline bool Divc(InterpState &S, CodePtr OpPC) {
565560
Floating RI = S.allocFloat(A.getSemantics());
566561
RI.copy(ResI);
567562
Result.atIndex(1).deref<Floating>() = RI; // Floating(ResI);
563+
Result.atIndex(1).initialize();
568564

569565
Result.initialize();
570566
} else {

0 commit comments

Comments
 (0)