Skip to content
Snippets Groups Projects
Commit 9ccc2ea6 authored by Nirav Dave's avatar Nirav Dave
Browse files

Silence Warning. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283583 91177308-0d34-0410-b5e6-96231b3b80d8
parent 014cf5b3
No related branches found
No related tags found
No related merge requests found
...@@ -313,7 +313,7 @@ void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) { ...@@ -313,7 +313,7 @@ void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) {
const ReturnStmt *RS = nullptr; const ReturnStmt *RS = nullptr;
if (!L.getSrc()->empty()) { if (!L.getSrc()->empty()) {
if (Optional<CFGStmt> LastStmt = L.getSrc()->back().getAs<CFGStmt>()) { 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()) if (!RS->getRetValue())
RS = nullptr; RS = nullptr;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment