forked from OSchip/llvm-project
StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp: Appease msvc.
0 (as nullptr) is incompatible to pointer in type matching on msvc. llvm-svn: 167355
This commit is contained in:
parent
a318ef6fa6
commit
ba15a7974a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue