https://bugs.llvm.org/show_bug.cgi?id=42597
Bug ID: 42597
Summary: Address space cast involving blocks missing from AST
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: marco.antogn...@arm.com
CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org
typedef int (^block_ty)(void);
__global block_ty block0 = ^{ return 0; };
kernel void test(void) {
int x = ((__local block_ty) block0)(); // FIXME The AS cast is missing from
the AST, plus Clang crashes.
}
The above crashes:
llvm/include/llvm/Support/Casting.h:105: static bool llvm::isa_impl_cl<To,
const From*>::doit(const From*) [with To = clang::ParmVarDecl; From =
clang::Decl]: Assertion `Val && "isa<> used on a null pointer"' failed.
The crash originated from clang::CodeGen::CodeGenFunction::EmitBlockCallExpr.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs