Cleanup title/description of "undefined branch" BugType and add some test cases for this check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89679 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/UndefBranchChecker.cpp b/lib/Analysis/UndefBranchChecker.cpp
index 8d72b5a..0a66e21 100644
--- a/lib/Analysis/UndefBranchChecker.cpp
+++ b/lib/Analysis/UndefBranchChecker.cpp
@@ -72,8 +72,7 @@
if (N) {
N->markAsSink();
if (!BT)
- BT = new BuiltinBug("Undefined branch",
- "Branch condition evaluates to an undefined or garbage value");
+ BT = new BuiltinBug("Branch condition evaluates to a garbage value");
EnhancedBugReport *R = new EnhancedBugReport(*BT, BT->getDescription(),N);
R->addVisitorCreator(bugreporter::registerTrackNullOrUndefValue,
Condition);