Convert a reachable llvm_unreachable into an assert.

This commit is contained in:
Aaron Ballman 2020-03-10 14:21:55 -04:00
parent a0c0389ffb
commit 4a0267e3ad
1 changed files with 3 additions and 3 deletions

View File

@ -134,9 +134,9 @@ StringRef AnalyzerOptions::getCheckerStringOption(StringRef CheckerName,
CheckerName = CheckerName.substr(0, Pos);
} while (!CheckerName.empty() && SearchInParents);
llvm_unreachable("Unknown checker option! Did you call getChecker*Option "
"with incorrect parameters? User input must've been "
"verified by CheckerRegistry.");
assert(false && "Unknown checker option! Did you call getChecker*Option "
"with incorrect parameters? User input must've been "
"verified by CheckerRegistry.");
return "";
}