projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9694825
)
Silence Warning. NFC.
author
Nirav Dave
<niravd@google.com>
Fri, 7 Oct 2016 19:11:33 +0000
(19:11 +0000)
committer
Nirav Dave
<niravd@google.com>
Fri, 7 Oct 2016 19:11:33 +0000
(19:11 +0000)
llvm-svn: 283583
clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
index
ea809b7
..
4e2866c
100644
(file)
--- 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<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;
}