[clang] [Clang][CodeGen] Start migrating away from assuming the Default AS is 0 (PR #88182)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 06:30:50 PDT 2024


================
@@ -2216,7 +2216,7 @@ static llvm::Value *EmitTypeidFromVTable(CodeGenFunction &CGF, const Expr *E,
 }
 
 llvm::Value *CodeGenFunction::EmitCXXTypeidExpr(const CXXTypeidExpr *E) {
-  llvm::Type *PtrTy = llvm::PointerType::getUnqual(getLLVMContext());
+  llvm::Type *PtrTy = Int8PtrTy;
----------------
AlexVlx wrote:

It should but sadly it cannot, see our historical conversation here: <https://reviews.llvm.org/D157452>. I've not got around to working on your suggestion there about supporting declaring a default AS for a class, so we have to keep things like so for now.

https://github.com/llvm/llvm-project/pull/88182


More information about the cfe-commits mailing list