aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/StmtDataCollectors.td
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/AST/StmtDataCollectors.td')
-rw-r--r--include/clang/AST/StmtDataCollectors.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/StmtDataCollectors.td b/include/clang/AST/StmtDataCollectors.td
index 90ca080273..a46d2714eb 100644
--- a/include/clang/AST/StmtDataCollectors.td
+++ b/include/clang/AST/StmtDataCollectors.td
@@ -189,8 +189,8 @@ class CXXFoldExpr {
}
class GenericSelectionExpr {
code Code = [{
- for (unsigned i = 0; i < S->getNumAssocs(); ++i) {
- addData(S->getAssocType(i));
+ for (const GenericSelectionExpr::ConstAssociation &Assoc : S->associations()) {
+ addData(Assoc.getType());
}
}];
}