[llvm] [TySan] A Type Sanitizer (LLVM) (PR #76259)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 03:43:27 PST 2024


================
@@ -375,8 +375,8 @@ static bool isStructPathTBAA(const MDNode *MD) {
 AliasResult TypeBasedAAResult::alias(const MemoryLocation &LocA,
                                      const MemoryLocation &LocB,
                                      AAQueryInfo &AAQI, const Instruction *) {
-  if (!EnableTBAA)
-    return AliasResult::MayAlias;
+  if (!shouldUseTBAA())
+    return AAResultBase::alias(LocA, LocB, AAQI, nullptr);
----------------
fhahn wrote:

Restored the original code, returning `MayAlias` should be enough and the AA manager will take care of checking other registered AA analyses.

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


More information about the llvm-commits mailing list