aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-11-03 13:59:36 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-11-03 13:59:36 +0000
commit0a591c242b867844d483091cae546e294bbee312 (patch)
tree10dc5c5106d6a564533f262b27501e0f3cee70e4 /lib
parent9cb1c3de9df7d944f0c5cccaf03fa414036487eb (diff)
StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp: Appease msvc.
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
Diffstat (limited to 'lib')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp b/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
index cd67a030b7..f5e319fb82 100644
--- a/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
+++ b/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
@@ -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();
}