https://github.com/tbaederr closed
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/79452
>From c1a7132cb9cf1773358c70a750af3b66213990d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 25 Jan 2024 15:20:52 +0100
Subject: [PATCH] [clang][Interp] Handle complex values in
@@ -2120,8 +2074,15 @@ bool ByteCodeExprGen::visitInitializer(const
Expr *E) {
template
bool ByteCodeExprGen::visitBool(const Expr *E) {
std::optional T = classify(E->getType());
- if (!T)
+ if (!T) {
+// Convert complex values to bool.
+if
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/79452
>From 720f2f869a11dd7c905f8d91180f3eb517ab9279 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 25 Jan 2024 15:20:52 +0100
Subject: [PATCH] [clang][Interp] Handle complex values in
@@ -125,3 +125,7 @@ struct XY { int before; struct XX xx, *xp; float* after; }
xy[] = {
0, // all-warning {{initializer overrides prior initialization
of this subobject}}
[2].xx.a, [2].xx, _float
};
+
+const int A = ((_Complex double)1.0 ? 21 : 1);
@@ -125,3 +125,7 @@ struct XY { int before; struct XX xx, *xp; float* after; }
xy[] = {
0, // all-warning {{initializer overrides prior initialization
of this subobject}}
[2].xx.a, [2].xx, _float
};
+
+const int A = ((_Complex double)1.0 ? 21 : 1);
@@ -2120,8 +2074,15 @@ bool ByteCodeExprGen::visitInitializer(const
Expr *E) {
template
bool ByteCodeExprGen::visitBool(const Expr *E) {
std::optional T = classify(E->getType());
- if (!T)
+ if (!T) {
+// Convert complex values to bool.
+if
https://github.com/sethp approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/sethp edited https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaederr wrote:
Ping
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/79452
>From 9234c4224e02e5170d81aeb5fb2bfa9fe7a26eb1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 25 Jan 2024 15:20:52 +0100
Subject: [PATCH] [clang][Interp] Handle complex values in
Timm =?utf-8?q?B=C3=A4der?=
Message-ID:
In-Reply-To:
tbaederr wrote:
Ping
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Timm =?utf-8?q?Bäder?=
Message-ID:
In-Reply-To:
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/79452
>From a0727e28e16a051bce8b1b2dd8f5ace6b2b54394 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Tue, 6 Feb 2024 10:03:15 +0100
Subject:
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/79452
>From d4364d84bff990a241904cdf6644afac9b304923 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 25 Jan 2024 15:20:52 +0100
Subject: [PATCH] [clang][Interp] Handle complex values in
https://github.com/tbaederr unassigned
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr unassigned
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr unassigned
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr unassigned
https://github.com/llvm/llvm-project/pull/79452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
In C++, we get a ComplexToBool cast, but we might not in C.
---
Full diff: https://github.com/llvm/llvm-project/pull/79452.diff
4 Files Affected:
- (modified) clang/lib/AST/Interp/ByteCodeExprGen.cpp
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/79452
In C++, we get a ComplexToBool cast, but we might not in C.
>From b207bff4cda462869bcf8547e44d23e5b8fc5e94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 25 Jan 2024 15:20:52 +0100
20 matches
Mail list logo