[clang] [TBAA] Extend pointer TBAA to pointers of non-builtin types. (PR #110569)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 19 18:08:06 PDT 2024


================
@@ -221,21 +221,27 @@ llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) {
       PtrDepth++;
       Ty = Ty->getPointeeType().getTypePtr();
     } while (Ty->isPointerType());
-    // TODO: Implement C++'s type "similarity" and consider dis-"similar"
-    // pointers distinct for non-builtin types.
+
+    SmallString<256> TyName;
----------------
fhahn wrote:

Done, thanks!

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


More information about the cfe-commits mailing list