[clang] [CUDA][HIP] make trivial ctor/dtor host device (PR #72394)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 15 11:35:43 PST 2023


================
@@ -12,7 +12,7 @@ extern "C" void host_fn() {}
 struct Dummy {};
 
 struct S {
-  S() {}
+  S() { x = 1; }
----------------
yxsamliu wrote:

will do

https://github.com/llvm/llvm-project/pull/72394


More information about the cfe-commits mailing list