summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-11-19 21:50:08 +0000
committerDavide Italiano <davide@freebsd.org>2015-11-19 21:50:08 +0000
commitc807f487f74bd1b8fd8f4e389f4ad99b4111e3f7 (patch)
tree30770e74cc85e7e5b6985d5d1276d3a2cceb4ada /llvm/lib/Transforms
parent55d99f0e7c0cbf7aabafbf776e5361bf0b54054a (diff)
downloadbcm5719-llvm-c807f487f74bd1b8fd8f4e389f4ad99b4111e3f7.tar.gz
bcm5719-llvm-c807f487f74bd1b8fd8f4e389f4ad99b4111e3f7.zip
Follow up to r253591. Turn into an assertion.
Reported by: David Blaikie. llvm-svn: 253605
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 9048384164e..8eb82e39b8a 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1216,8 +1216,7 @@ bool AddressSanitizerModule::ShouldInstrumentGlobal(GlobalVariable *G) {
bool TAAParsed;
std::string ErrorCode = MCSectionMachO::ParseSectionSpecifier(
Section, ParsedSegment, ParsedSection, TAA, TAAParsed, StubSize);
- if (!ErrorCode.empty())
- llvm_unreachable("Invalid section specifier.");
+ assert(ErrorCode.empty() && "Invalid section specifier.");
// Ignore the globals from the __OBJC section. The ObjC runtime assumes
// those conform to /usr/lib/objc/runtime.h, so we can't add redzones to
OpenPOWER on IntegriCloud