1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

[AddressSanitizer] assert(false) -> llvm_unreachable and remove return.

llvm-svn: 253591
This commit is contained in:
Davide Italiano 2015-11-19 19:28:23 +00:00
parent 96d6289a92
commit 73a83d035c

View File

@ -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