llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Clang compiling OpenCL assertion on clang::Expr::isIntegerConstantExpr

Open komalon1 opened this issue 3 years ago • 4 comments

See reproducer in: https://godbolt.org/z/n7nzhWYdd

Clang FE compiling OpenCL file is failing on assertion

komalon1 avatar Apr 04 '23 10:04 komalon1

@llvm/issue-subscribers-clang-frontend

llvmbot avatar Apr 04 '23 14:04 llvmbot

I ran into it as well, the issue seems to be type mismatch in async_work_group_copy arguments.

Minimal reproducer here: https://godbolt.org/z/d546Tj1jT

ClockworkV avatar Sep 12 '23 11:09 ClockworkV

@llvm/issue-subscribers-opencl

See reproducer in: https://godbolt.org/z/n7nzhWYdd

Clang FE compiling OpenCL file is failing on assertion

llvmbot avatar Sep 12 '23 11:09 llvmbot

The mixing of short* and ushort* arguments triggers the "call to 'async_work_group_copy' is ambiguous" diagnostic. TryOCLZeroOpaqueTypeInitialization then tries to see if the event argument is zero, but due to the earlier error this trips the assertion in the expression evaluator.

svenvh avatar Sep 12 '23 14:09 svenvh