[PATCH] D59985: Re-fix invalid address space generation for clk_event_t arguments of enqueue_kernel builtin function
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 4 02:47:51 PDT 2019
Anastasia added a comment.
In D59985#1453312 <https://reviews.llvm.org/D59985#1453312>, @AlexeySotkin wrote:
> Alternative way to fix it is to use `isNullPointerConstant` like we do in `SemaOpenCLBuiltinEnqueueKernel`. So in case we have a zero literal value we can emit `ConstantPointerNull` directly, without `EmitScalarExpr` .
Ok and if it's not 0 the code gets rejected?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59985/new/
https://reviews.llvm.org/D59985
More information about the cfe-commits
mailing list