[PATCH] D12241: [CUDA] Change initializer for CUDA device code based on CUDA documentation.

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 15:25:27 PDT 2015


tra added a comment.

Following code compiles with nvcc, but errors out with clang and this patch due to InitExpr check in CodeGenModule.cpp. It looks like the check needs to be more selective.

  struct c {
    c() {}
  };
  
  __shared__ c var;


http://reviews.llvm.org/D12241





More information about the llvm-commits mailing list