Skip to content

Commit

Permalink
[OpenCL] Fix BIenqueue_kernel fallthrough (#83238)
Browse files Browse the repository at this point in the history
Handling of the `BIenqueue_kernel` builtin must not fallthrough to the
`BIget_kernel_work_group_size` builtin, as these builtins have no common
functionality.
  • Loading branch information
svenvh committed Apr 2, 2024
1 parent 8bb9443 commit e47a81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/CGBuiltin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5835,7 +5835,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
EmitLifetimeEnd(TmpSize, TmpPtr);
return Call;
}
[[fallthrough]];
llvm_unreachable("Unexpected enqueue_kernel signature");
}
// OpenCL v2.0 s6.13.17.6 - Kernel query functions need bitcast of block
// parameter.
Expand Down

0 comments on commit e47a81c

Please sign in to comment.