summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-20 09:47:03 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-20 09:47:03 +0000
commit87f6c24f991cc1a8ba029a205766d2c8e079cc01 (patch)
tree4ae39f3ac4e0e96ce11fa06e97a168149fadda39 /clang/lib/Analysis
parent137efb231e36d8933e83719c2e5157a55e2698c6 (diff)
downloadbcm5719-llvm-87f6c24f991cc1a8ba029a205766d2c8e079cc01.tar.gz
bcm5719-llvm-87f6c24f991cc1a8ba029a205766d2c8e079cc01.zip
Fix -Wunused-variable warnings after r330377.
llvm-svn: 330408
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/ConstructionContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/ConstructionContext.cpp b/clang/lib/Analysis/ConstructionContext.cpp
index 8656a1bbe09..9db6f214bee 100644
--- a/clang/lib/Analysis/ConstructionContext.cpp
+++ b/clang/lib/Analysis/ConstructionContext.cpp
@@ -80,7 +80,7 @@ const ConstructionContext *ConstructionContext::createFromLayers(
return create<TemporaryObjectConstructionContext>(C, BTE, MTE);
}
// This is a constructor into a function argument. Not implemented yet.
- if (auto *CE = dyn_cast<CallExpr>(ParentLayer->getTriggerStmt()))
+ if (isa<CallExpr>(ParentLayer->getTriggerStmt()))
return nullptr;
// This is C++17 copy-elided construction into return statement.
if (auto *RS = dyn_cast<ReturnStmt>(ParentLayer->getTriggerStmt())) {
@@ -118,7 +118,7 @@ const ConstructionContext *ConstructionContext::createFromLayers(
return create<SimpleReturnedValueConstructionContext>(C, RS);
}
// This is a constructor into a function argument. Not implemented yet.
- if (auto *CE = dyn_cast<CallExpr>(TopLayer->getTriggerStmt()))
+ if (isa<CallExpr>(TopLayer->getTriggerStmt()))
return nullptr;
llvm_unreachable("Unexpected construction context with statement!");
} else if (const CXXCtorInitializer *I = TopLayer->getTriggerInit()) {
OpenPOWER on IntegriCloud