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

John McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 14:20:55 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();
----------------
rjmccall wrote:

This and the site below should still respect the measured pointer depth, right?

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


More information about the cfe-commits mailing list