Fix -Wunused-variable warnings after r330377.

llvm-svn: 330408
This commit is contained in:
Andrea Di Biagio 2018-04-20 09:47:03 +00:00
parent 137efb231e
commit 87f6c24f99
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {