[PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

Anna Zaks via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 23:34:17 PDT 2016


zaks.anna added inline comments.

================
Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:300-301
@@ -299,3 +299,4 @@
 
+  assert(SM && "SourceManager is NULL, cannot iterate through the diagnostics");
 
   for (std::vector<const PathDiagnostic*>::iterator DI = Diags.begin(),
----------------
LGTM


http://reviews.llvm.org/D19385





More information about the cfe-commits mailing list