diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-07-02 07:15:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-02 07:15:47 +0200 |
commit | 984c78f27d1475390d9564b099a8550ad494dfd7 (patch) | |
tree | e94ff2c5170cd240ff08f819c3639d0914846c55 /clang/lib/AST/ByteCode | |
parent | c9bfdae62002545db2de76e967da245048908284 (diff) | |
download | llvm-984c78f27d1475390d9564b099a8550ad494dfd7.zip llvm-984c78f27d1475390d9564b099a8550ad494dfd7.tar.gz llvm-984c78f27d1475390d9564b099a8550ad494dfd7.tar.bz2 |
[clang][bytecode] Add back missing initialize call (#146589)
This was only accidentally dropped, so add it back.
Diffstat (limited to 'clang/lib/AST/ByteCode')
-rw-r--r-- | clang/lib/AST/ByteCode/Interp.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h index 94ab59c..f962313 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 { |