[PATCH] D102801: [CUDA][HIP] Fix implicit constant variable
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 19 16:32:45 PDT 2021
tra added a comment.
This patch does not appear to fix the second regression introduced by the D102237 <https://reviews.llvm.org/D102237>.
Trying to compile the following code triggers an assertion in CGExpr.cpp:
class a {
public:
a(char *);
};
void b() {
[](char *c) {
static a d(c);
d;
};
}
With assertions disabled it eventually leads to a different error:
`Module has a nontrivial global ctor, which NVPTX does not support.`
https://godbolt.org/z/sYE1dKr1W
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102801/new/
https://reviews.llvm.org/D102801
More information about the cfe-commits
mailing list