Don't emit empty strings for path diagnostics when taking the default branch of a switch statement that has no label.
llvm-svn: 50242
This commit is contained in:
parent
ecbdf75049
commit
4dd412e022
|
@ -322,6 +322,13 @@ void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD,
|
|||
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
// FIXME: Get line number.
|
||||
|
||||
os << "'Default' branch taken. "
|
||||
"Execution continues after switch statement.";
|
||||
}
|
||||
|
||||
PD.push_front(new PathDiagnosticPiece(L, os.str()));
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue