================ @@ -2497,7 +2502,12 @@ void CodeGenModule::ConstructAttributeList(StringRef Name, NumElemsParam); } - if (TargetDecl->hasAttr<OpenCLKernelAttr>()) { + if (TargetDecl->hasAttr<OpenCLKernelAttr>() && + CallingConv != CallingConv::CC_C && + CallingConv != + CallingConv::CC_SpirFunction) { // Check CallingConv to avoid adding + // uniform-work-group-size attribute + // to OpenCL Kernel Stub ---------------- arsenm wrote:
Weird comment placement and line breaks https://github.com/llvm/llvm-project/pull/115821 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits