From 2620d22b2bbc158981f37213b9a1d7fd4495a135 Mon Sep 17 00:00:00 2001 From: Nirav Dave Date: Fri, 7 Oct 2016 19:11:33 +0000 Subject: [PATCH] Silence Warning. NFC. llvm-svn: 283583 --- clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp index ea809b7..4e2866c 100644 --- a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -313,7 +313,7 @@ void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) { const ReturnStmt *RS = nullptr; if (!L.getSrc()->empty()) { if (Optional LastStmt = L.getSrc()->back().getAs()) { - if (RS = dyn_cast(LastStmt->getStmt())) { + if ((RS = dyn_cast(LastStmt->getStmt()))) { if (!RS->getRetValue()) RS = nullptr; } -- 2.7.4