[llvm-branch-commits] [clang] [clang] Implement pointer authentication for C++ virtual functions, v-tables, and VTTs (PR #94056)

Anton Korobeynikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 7 23:40:42 PDT 2024


================
@@ -3094,9 +3188,10 @@ void VFTableBuilder::AddMethods(BaseSubobject Base, unsigned BaseDepth,
                                     ReturnAdjustmentOffset.VirtualBase);
       }
     }
-
+    auto thisType = (OverriddenMD ? OverriddenMD : MD)->getThisType().getTypePtr();
----------------
asl wrote:

```suggestion
    auto ThisType = (OverriddenMD ? OverriddenMD : MD)->getThisType().getTypePtr();
```

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


More information about the llvm-branch-commits mailing list