Allow HandleFormatSpecifier() to indicate that no more processing of the format string is desired.
llvm-svn: 94715
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp
index 9907dc9..1afa9ad 100644
--- a/clang/lib/Analysis/PrintfFormatString.cpp
+++ b/clang/lib/Analysis/PrintfFormatString.cpp
@@ -233,7 +233,8 @@
if (!FSR.hasValue())
break;
// We have a format specifier. Pass it to the callback.
- H.HandleFormatSpecifier(FSR.getValue(), FSR.getStart(), I);
+ if (!H.HandleFormatSpecifier(FSR.getValue(), FSR.getStart(), I))
+ return false;
}
assert(I == E && "Format string not exhausted");
return false;