[clang] [TBAA] Refine pointer-tbaa for void pointers by pointer depth (PR #126047)

Bruno De Fraine via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 10 01:21:42 PST 2025


================
@@ -256,7 +277,7 @@ llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) {
       // similar-types rule.
       const auto *RT = Ty->getAs<RecordType>();
       if (!RT)
-        return AnyPtr;
+        return getAnyPtr();
----------------
brunodf-snps wrote:

Yes, I agree this should be possible. Code updated.

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


More information about the cfe-commits mailing list