Silence Warning. NFC.
authorNirav Dave <niravd@google.com>
Fri, 7 Oct 2016 19:11:33 +0000 (19:11 +0000)
committerNirav Dave <niravd@google.com>
Fri, 7 Oct 2016 19:11:33 +0000 (19:11 +0000)
llvm-svn: 283583

clang/lib/StaticAnalyzer/Core/CoreEngine.cpp

index ea809b7..4e2866c 100644 (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;
         }