yaxunl added a comment. > Because, notably, if you do that, then an attempt to pass &x as an int* will > fail, which means this isn't really C++ anymore... and yet that appears to be > exactly what you want.
How about when generating alloca instruction, I insert addrspacecast to the default address space, then everything is in default address space. https://reviews.llvm.org/D27627 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits