[PATCH] D53350: [Sanitizer][PassManager] Fix for failing ASan tests on ARM
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 16 16:44:51 PDT 2018
leonardchan created this revision.
leonardchan added a reviewer: dyung.
leonardchan added a project: Sanitizers.
Herald added subscribers: chrib, hiraditya, kristof.beyls.
Forgot to initialize the legacy pass in it's constructor.
Repository:
rL LLVM
https://reviews.llvm.org/D53350
Files:
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Index: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1056,7 +1056,9 @@
bool Recover = false,
bool UseAfterScope = false)
: FunctionPass(ID), CompileKernel(CompileKernel), Recover(Recover),
- UseAfterScope(UseAfterScope) {}
+ UseAfterScope(UseAfterScope) {
+ initializeAddressSanitizerLegacyPassPass(*PassRegistry::getPassRegistry());
+ }
StringRef getPassName() const override {
return "AddressSanitizerFunctionPass";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53350.169922.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181016/f9f62b69/attachment.bin>
More information about the llvm-commits
mailing list