AlexVlx marked an inline comment as done.
AlexVlx added inline comments.

================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3542
+    LangAS AAS = getASTAllocaAddressSpace();
+    LangAS EAS = E->getType().getAddressSpace();
+    if (AAS != EAS) {
----------------
rjmccall wrote:
> `E->getType().getAddressSpace()` is actually the top-level qualification of 
> the type; you need `E->getType()->getPointeeType().getAddressSpace()`.
D'oh! I will probably never avoid getting tripped by this, sorry for the noise.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156539/new/

https://reviews.llvm.org/D156539

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to