From f07e815823e03c046bbc186ec2b41d656e9cac7f Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi <geek4civic@gmail.com> Date: Sat, 9 Feb 2013 01:22:23 +0000 Subject: [PATCH] clang/lib/StaticAnalyzer/Core/BugReporter.cpp: Appease old msvc in std::pair(0, 0). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174792 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index f4d50708dd4..6ae73b58c0e 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -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) { -- GitLab