Silence Warning. NFC.

llvm-svn: 283583
This commit is contained in:
Nirav Dave 2016-10-07 19:11:33 +00:00
parent 9694825d32
commit 2620d22b2b
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) {
const ReturnStmt *RS = nullptr;
if (!L.getSrc()->empty()) {
if (Optional<CFGStmt> LastStmt = L.getSrc()->back().getAs<CFGStmt>()) {
if (RS = dyn_cast<ReturnStmt>(LastStmt->getStmt())) {
if ((RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()))) {
if (!RS->getRetValue())
RS = nullptr;
}