[llvm] [ASan] AddressSanitizerPass constructor should honor the AsanCtorKind argument (PR #72330)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 13:33:48 PST 2023
================
@@ -1149,7 +1151,7 @@ AddressSanitizerPass::AddressSanitizerPass(
AsanCtorKind ConstructorKind)
: Options(Options), UseGlobalGC(UseGlobalGC),
UseOdrIndicator(UseOdrIndicator), DestructorKind(DestructorKind),
- ConstructorKind(ClConstructorKind) {}
+ ConstructorKind(ConstructorKind) {}
----------------
vitalybuka wrote:
I guess it should be here as well?
```
ConstructorKind(ClConstructorKind.getNumOccurrences() > 0
? ClConstructorKind
: ConstructorKind)
```
https://github.com/llvm/llvm-project/pull/72330
More information about the llvm-commits
mailing list