rjmccall added inline comments.

================
Comment at: lib/CodeGen/CGCall.cpp:1260
       llvm::ConstantInt::get(CGF.IntPtrTy, SrcSize),
       false);
   return CGF.Builder.CreateLoad(Tmp);
----------------
The main reason why `llvm.memcpy` is an overloaded intrinsic is so that you can 
copy things in arbitrary address spaces.  Please just cast to the appropriate 
`i8` pointer type in the corresponding address spaces.


Repository:
  rC Clang

https://reviews.llvm.org/D53780



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

Reply via email to