================
@@ -650,7 +650,7 @@ OutlinedFunctionDecl *BuildSYCLKernelEntryPointOutline(Sema 
&SemaRef,
   for (ParmVarDecl *PVD : FD->parameters()) {
     ImplicitParamDecl *IPD = ImplicitParamDecl::Create(
         SemaRef.getASTContext(), OFD, SourceLocation(), PVD->getIdentifier(),
-        PVD->getType(), ImplicitParamKind::Other);
+        PVD->getType().getNonReferenceType(), ImplicitParamKind::Other);
----------------
Fznamznon wrote:

I don't have a strong preference here, right now we are copying the original 
function's body so I don't expect side effects from stripping the qualifiers 
but I tend to agree with @tahonermann since he is the original author of the 
approach we're currently doing for SYCL here.

https://github.com/llvm/llvm-project/pull/186788
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to