[llvm] [TySan] A Type Sanitizer (LLVM) (PR #76259)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 04:02:11 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 (!EnableTBAA || UsingTypeSanitizer || UsingTypeSanitizer)
----------------
fmayer wrote:
nit: `UsingTypeSanitizer || UsingTypeSanitizer`
I would pull this into a method like
```
bool ShouldUseTBAA() {
return EnableTBAA && !UsingTypeSanitizer;
}
```
https://github.com/llvm/llvm-project/pull/76259
More information about the llvm-commits
mailing list