]> granicus.if.org Git - clang/commitdiff
clang/lib/StaticAnalyzer/Core/BugReporter.cpp: Appease old msvc in std::pair(0, 0).
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 9 Feb 2013 01:22:23 +0000 (01:22 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 9 Feb 2013 01:22:23 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174792 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index f4d50708dd4d1ac4433f34caa1a3b53864462d3e..6ae73b58c0e4f5fd3fec5c2c6664390df441d556 100644 (file)
@@ -1324,7 +1324,8 @@ static bool GenerateExtensivePathDiagnostic(PathDiagnostic& PD,
 
   // Record the last "looping back" diagnostic.  This is used
   // for determining if we should emit a diagnostic for skipped loops.
-  std::pair<const Stmt *, PathDiagnosticEventPiece *> LastLoopDiagnostic(0, 0);
+  std::pair<const Stmt *, PathDiagnosticEventPiece *>
+    LastLoopDiagnostic((Stmt*)0, (PathDiagnosticEventPiece*)0);
 
   const ExplodedNode *NextNode = N->pred_empty() ? NULL : *(N->pred_begin());
   while (NextNode) {