[llvm-bugs] [Bug 42597] New: Address space cast involving blocks missing from AST
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 12 04:35:30 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: marco.antognini at arm.com
CC: anastasia.stulova at arm.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190712/7f09fc45/attachment.html>
More information about the llvm-bugs
mailing list