diff options
Diffstat (limited to 'src/shared/cplusplus/ASTMatcher.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTMatcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cplusplus/ASTMatcher.cpp b/src/shared/cplusplus/ASTMatcher.cpp index e9734c661f..612433d8dd 100644 --- a/src/shared/cplusplus/ASTMatcher.cpp +++ b/src/shared/cplusplus/ASTMatcher.cpp @@ -434,9 +434,9 @@ bool ASTMatcher::match(CompoundExpressionAST *node, CompoundExpressionAST *patte pattern->lparen_token = node->lparen_token; - if (! pattern->compoundStatement) - pattern->compoundStatement = node->compoundStatement; - else if (! AST::match(node->compoundStatement, pattern->compoundStatement, this)) + if (! pattern->statement) + pattern->statement = node->statement; + else if (! AST::match(node->statement, pattern->statement, this)) return false; pattern->rparen_token = node->rparen_token; |