[llvm] [ASan] AddressSanitizerPass constructor should honor the AsanCtorKind argument (PR #72330)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 22:33:56 PST 2023


================
@@ -1149,7 +1152,7 @@ AddressSanitizerPass::AddressSanitizerPass(
     AsanCtorKind ConstructorKind)
     : Options(Options), UseGlobalGC(UseGlobalGC),
       UseOdrIndicator(UseOdrIndicator), DestructorKind(DestructorKind),
-      ConstructorKind(ClConstructorKind) {}
+      ConstructorKind(ConstructorKind) {}
----------------
vitalybuka wrote:

and we don't need to introduce Invalid

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


More information about the llvm-commits mailing list