[clang] [TBAA] Only emit pointer tbaa metedata for record types. (PR #116991)

John McCall via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 09:52:01 PST 2024


================
@@ -230,6 +243,12 @@ llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) {
               ->getString();
       TyName = Name;
     } else {
+      // Be conservative if the type isn't a RecordType. We are  specifically
----------------
rjmccall wrote:

```suggestion
      // Be conservative if the type isn't a RecordType. We are specifically
```

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


More information about the cfe-commits mailing list