[clang] [CUDA][HIP] make trivial ctor/dtor host device (PR #72394)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 15 11:23:03 PST 2023
================
@@ -12,7 +12,7 @@ extern "C" void host_fn() {}
struct Dummy {};
struct S {
- S() {}
+ S() { x = 1; }
----------------
Artem-B wrote:
Can we make the purpose of non-trivial constructor more descriptive, here and in other places?
E.g. `S() { static int nontrivial_ctor = 1; }`
https://github.com/llvm/llvm-project/pull/72394
More information about the cfe-commits
mailing list