================ @@ -1556,7 +1556,8 @@ void CXXNameMangler::mangleUnqualifiedName( FD && FD->hasAttr<CUDAGlobalAttr>() && GD.getKernelReferenceKind() == KernelReferenceKind::Stub; bool IsOCLDeviceStub = - FD && FD->hasAttr<OpenCLKernelAttr>() && + getASTContext().getLangOpts().OpenCL && FD && + FD->hasAttr<DeviceKernelAttr>() && ---------------- erichkeane wrote:
Same question here. https://github.com/llvm/llvm-project/pull/137882 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits