Skip to content

Commit b6ad305

Browse files
committed
fixup! [Clang] Handle real and imaginary part of complex lvalue in APValue::printPretty
Add release notes. Move the test from CodeGen to Sema.
1 parent 07a9bd8 commit b6ad305

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ Bug Fixes in This Version
474474
- Clang now accepts anonymous members initialized with designated initializers
475475
inside templates.
476476
Fixes (`#65143 <https://github.com/llvm/llvm-project/issues/65143>`_)
477+
- Fix crash in formatting the real/imaginary part of a complex lvalue.
478+
Fixes (`#69218 <https://github.com/llvm/llvm-project/issues/69218>`_)
477479

478480
Bug Fixes to Compiler Builtins
479481
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

clang/test/CodeGen/complex.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,3 @@ void t92(void) {
113113
(0 ? (_Complex double) 2.0f : 2.0f);
114114
}
115115

116-
// PR69218
117-
int t10(void) {
118-
float _Complex a;
119-
return (0 < &__real__ a) && (0 < &__imag__ a);
120-
}

clang/test/Sema/complex-imag.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ void f4(void) {
2727
double *c = &__real a;
2828
double *d = &__imag a;
2929
}
30+
31+
// PR69218
32+
int f5(void) {
33+
float _Complex a;
34+
return (0 < &__real__ a) && (0 < &__imag__ a);
35+
}

0 commit comments

Comments
 (0)