rjmccall added inline comments.

================
Comment at: clang/lib/CodeGen/CGExpr.cpp:5051
     llvm::Type *CalleeTy = getTypes().GetFunctionType(FnInfo);
-    CalleeTy = CalleeTy->getPointerTo();
+    int AS = getTypes().getDataLayout().getProgramAddressSpace();
+    CalleeTy = CalleeTy->getPointerTo(AS);
----------------
`CalleePtr->getType()->getPointerAddressSpace()` should be fine.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78125



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

Reply via email to