summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-11-19 19:28:23 +0000
committerDavide Italiano <davide@freebsd.org>2015-11-19 19:28:23 +0000
commit193c4edffb57ff0dbc90019ce09ae71c1cb1d59f (patch)
tree67002b46c204be8adb7822fe6eb8ccf70a1b0d8e /llvm/lib/Transforms
parent48401eb18aabafd50ea8a24d254b3cc74a7b1363 (diff)
downloadbcm5719-llvm-193c4edffb57ff0dbc90019ce09ae71c1cb1d59f.tar.gz
bcm5719-llvm-193c4edffb57ff0dbc90019ce09ae71c1cb1d59f.zip
[AddressSanitizer] assert(false) -> llvm_unreachable and remove return.
llvm-svn: 253591
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 0ad3c2889a0..9048384164e 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1216,10 +1216,8 @@ bool AddressSanitizerModule::ShouldInstrumentGlobal(GlobalVariable *G) {
bool TAAParsed;
std::string ErrorCode = MCSectionMachO::ParseSectionSpecifier(
Section, ParsedSegment, ParsedSection, TAA, TAAParsed, StubSize);
- if (!ErrorCode.empty()) {
- assert(false && "Invalid section specifier.");
- return false;
- }
+ if (!ErrorCode.empty())
+ llvm_unreachable("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