Fix unused variable warning

This commit is contained in:
Simon Pilgrim 2020-03-24 11:40:02 +00:00
parent 8fa322dd39
commit 896fa30fc0
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,7 @@ void syntax::TreeBuilder::markStmtChild(Stmt *Child, NodeRole Role) {
// This is an expression in a statement position, consume the trailing
// semicolon and form an 'ExpressionStatement' node.
if (auto *E = dyn_cast<Expr>(Child)) {
if (isa<Expr>(Child)) {
setRole(ChildNode, NodeRole::ExpressionStatement_expression);
ChildNode = new (allocator()) syntax::ExpressionStatement;
// (!) 'getStmtRange()' ensures this covers a trailing semicolon.