================
@@ -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);
----------------
tahonermann wrote:

I lean towards preserving qualifiers since that better preserves the semantics 
of the function as written. Stripping qualifiers could result in unintended 
overload resolution (in weird cases).

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