Skip to content

Commit e47a81c

Browse files
authored
[OpenCL] Fix BIenqueue_kernel fallthrough (#83238)
Handling of the `BIenqueue_kernel` builtin must not fallthrough to the `BIget_kernel_work_group_size` builtin, as these builtins have no common functionality.
1 parent 8bb9443 commit e47a81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5835,7 +5835,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
58355835
EmitLifetimeEnd(TmpSize, TmpPtr);
58365836
return Call;
58375837
}
5838-
[[fallthrough]];
5838+
llvm_unreachable("Unexpected enqueue_kernel signature");
58395839
}
58405840
// OpenCL v2.0 s6.13.17.6 - Kernel query functions need bitcast of block
58415841
// parameter.

0 commit comments

Comments
 (0)