[clang] [clang][CodeGen] Make `UnqualPtrTy` truly unqualified (PR #94388)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 07:12:15 PDT 2024


================
@@ -51,9 +51,11 @@ struct CodeGenTypeCache {
     llvm::IntegerType *PtrDiffTy;
   };
 
+  /// unqualified void*
+  llvm::PointerType *UnqualPtrTy;
----------------
AlexVlx wrote:

I'm not opposed to this in principle; might have some additional benefits in that it forces people to knowingly opt for something via `PointerType::getUnqual` / `PointerType::get(some_as)`, rather than accidentally stumbling into it.

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


More information about the cfe-commits mailing list