diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-12 11:46:09 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-12 11:46:09 +0000 |
commit | e39e1316f034e9932cb8da535541a3e35a0e490a (patch) | |
tree | bc8dfa9631823bcf2c306b3f9339f0c110854fc9 /lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
parent | 1f85736c97980507833f1933796bf600f7efde67 (diff) | |
download | llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.gz llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.bz2 llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.xz |
Add SpecialCaseList::createOrDie() factory and use it in sanitizer passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/AddressSanitizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 7556522017..2ee3e01037 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -883,7 +883,7 @@ bool AddressSanitizerModule::runOnModule(Module &M) { TD = getAnalysisIfAvailable<DataLayout>(); if (!TD) return false; - BL.reset(new SpecialCaseList(BlacklistFile)); + BL.reset(SpecialCaseList::createOrDie(BlacklistFile)); if (BL->isIn(M)) return false; C = &(M.getContext()); int LongSize = TD->getPointerSizeInBits(); @@ -1076,7 +1076,7 @@ bool AddressSanitizer::doInitialization(Module &M) { if (!TD) return false; - BL.reset(new SpecialCaseList(BlacklistFile)); + BL.reset(SpecialCaseList::createOrDie(BlacklistFile)); DynamicallyInitializedGlobals.Init(M); C = &(M.getContext()); |