Fix missing INITIALIZE_PASS_DEPENDENCY for AddressSanitizer
authorKeno Fischer <kfischer@college.harvard.edu>
Tue, 20 Oct 2015 10:13:55 +0000 (10:13 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Tue, 20 Oct 2015 10:13:55 +0000 (10:13 +0000)
Summary: In r231241, TargetLibraryInfoWrapperPass was added to
`getAnalysisUsage` for `AddressSanitizer`, but the corresponding
`INITIALIZE_PASS_DEPENDENCY` was not added.

Reviewers: dvyukov, chandlerc, kcc

Subscribers: kcc, llvm-commits

Differential Revision: http://reviews.llvm.org/D13629

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/AddressSanitizer.cpp

index 8a44dfa644dbeace71ff3bf694dab49f36275d04..af3e88688fc608aef87212d0be4497f49c39fbec 100644 (file)
@@ -737,6 +737,7 @@ INITIALIZE_PASS_BEGIN(
     "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,
     false)
 INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
+INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
 INITIALIZE_PASS_END(
     AddressSanitizer, "asan",
     "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,