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

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 10:19:44 PDT 2024


================
@@ -366,7 +366,8 @@ CodeGenModule::CodeGenModule(ASTContext &C,
   IntTy = llvm::IntegerType::get(LLVMContext, C.getTargetInfo().getIntWidth());
   IntPtrTy = llvm::IntegerType::get(LLVMContext,
     C.getTargetInfo().getMaxPointerWidth());
-  Int8PtrTy = llvm::PointerType::get(LLVMContext, 0);
+  Int8PtrTy = llvm::PointerType::get(LLVMContext,
----------------
arichardson wrote:

Thanks, this should be useful for CHERI as well where it will allow dropping local diffs.

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


More information about the cfe-commits mailing list