Skip to content

Commit

Permalink
Convert a reachable llvm_unreachable into an assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBallman committed Mar 10, 2020
1 parent a0c0389 commit 4a0267e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 4a0267e

Please sign in to comment.