Convert a reachable llvm_unreachable into an assert.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 10 Mar 2020 18:21:55 +0000 (14:21 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 10 Mar 2020 18:22:21 +0000 (14:22 -0400)
clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp

index 01ac2bc..99e1675 100644 (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 "";
 }