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

John McCall via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 18:46:30 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;
----------------
rjmccall wrote:

Should this be `GlobalsInt8PtrTy`?

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


More information about the cfe-commits mailing list