We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e13bc commit 06bc971Copy full SHA for 06bc971
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
@@ -578,7 +578,7 @@ void DeadArgumentEliminationPass::surveyFunction(const Function &F) {
578
// Do not modify arguments when the SYCL kernel is a free function kernel.
579
// In this case, the user sets the arguments of the kernel by themselves
580
// and dead argument elimination may interfere with their expectations.
581
- bool FuncIsSyclFreeFunctionKernel =
+ const bool FuncIsSyclFreeFunctionKernel =
582
F.hasFnAttribute("sycl-single-task-kernel") ||
583
F.hasFnAttribute("sycl-nd-range-kernel");
584
if (FuncIsSyclFreeFunctionKernel) {
0 commit comments