]> granicus.if.org Git - clang/commitdiff
StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp: Appease msvc.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 3 Nov 2012 13:59:36 +0000 (13:59 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 3 Nov 2012 13:59:36 +0000 (13:59 +0000)
0 (as nullptr) is incompatible to pointer in type matching on msvc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp

index cd67a030b7d8abf86f93acba3182b324547417a4..f5e319fb826063e0d0d4c99322cc113eef009fac 100644 (file)
@@ -99,7 +99,7 @@ static std::pair<const Stmt*,
     }
 
     if (Node->pred_empty())
-      return std::pair<const Stmt*, const CFGBlock*>(0, 0);
+      return std::pair<const Stmt*, const CFGBlock*>((Stmt*)0, (CFGBlock*)0);
 
     Node = *Node->pred_begin();
   }
@@ -116,7 +116,7 @@ static std::pair<const Stmt*,
         break;
       }
       if (Node->pred_empty())
-        return std::pair<const Stmt*, const CFGBlock*>(S, 0);
+        return std::pair<const Stmt*, const CFGBlock*>(S, (CFGBlock*)0);
 
       Node = *Node->pred_begin();
     }