[llvm] r253605 - Follow up to r253591. Turn into an assertion.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 13:50:08 PST 2015


Author: davide
Date: Thu Nov 19 15:50:08 2015
New Revision: 253605

URL: http://llvm.org/viewvc/llvm-project?rev=253605&view=rev
Log:
Follow up to r253591. Turn into an assertion.

Reported by: David Blaikie.

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=253605&r1=253604&r2=253605&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu Nov 19 15:50:08 2015
@@ -1216,8 +1216,7 @@ bool AddressSanitizerModule::ShouldInstr
       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




More information about the llvm-commits mailing list