[llvm-bugs] [Bug 41674] New: [C++] Initialisation of this from expression with pointer type leads to an invalid bitcast
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 30 08:46:53 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41674
Bug ID: 41674
Summary: [C++] Initialisation of this from expression with
pointer type leads to an invalid bitcast
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: kevin.petit at arm.com
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
When this is initialiased from an expression with a pointer type, an invalid
bitcast is produced (it should be an addrspacecast).
The following code allows to reproduce the issue:
---------------------------------------------
struct foo {
void init() {
m_data = 1;
}
private:
int m_data;
};
kernel void test(global struct foo* afoo) {
afoo->init();
}
---------------------------------------------
I will be submitting a patch that I believe fixes the issue.
--
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/20190430/12ca2571/attachment.html>
More information about the llvm-bugs
mailing list