Skip to content

Commit 06bc971

Browse files
Update llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
Co-authored-by: Alexey Sachkov <[email protected]>
1 parent 01e13bc commit 06bc971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ void DeadArgumentEliminationPass::surveyFunction(const Function &F) {
578578
// Do not modify arguments when the SYCL kernel is a free function kernel.
579579
// In this case, the user sets the arguments of the kernel by themselves
580580
// and dead argument elimination may interfere with their expectations.
581-
bool FuncIsSyclFreeFunctionKernel =
581+
const bool FuncIsSyclFreeFunctionKernel =
582582
F.hasFnAttribute("sycl-single-task-kernel") ||
583583
F.hasFnAttribute("sycl-nd-range-kernel");
584584
if (FuncIsSyclFreeFunctionKernel) {

0 commit comments

Comments
 (0)