[PATCH] D59988: [PR41276] Generate address space cast of 'this' for objects attributed by an address space in C++
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 10:09:54 PDT 2019
rjmccall added inline comments.
================
Comment at: test/CodeGenCXX/address-space-of-this.cpp:9
+//CHECK: call void @_ZN6MyTypeC1Ei(%struct.MyType* addrspacecast (%struct.MyType addrspace(10)* @m to %struct.MyType*), i32 123)
+MyType __attribute__((address_space(10))) m = 123;
----------------
Sorry I didn't catch this before, but I don't see why this test is expected to work. We can't actually pass a pointer in address space 10 to that constructor.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59988/new/
https://reviews.llvm.org/D59988
More information about the cfe-commits
mailing list