We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f812c54 commit ec6fde3Copy full SHA for ec6fde3
clang/lib/AST/StmtCXX.cpp
@@ -171,9 +171,8 @@ bool CXXExpansionStmtPattern::hasDependentSize() const {
171
172
if (auto *Iterating = dyn_cast<CXXIteratingExpansionStmtPattern>(this)) {
173
const Expr *Begin = Iterating->getBeginVar()->getInit();
174
- const Expr *End = Iterating->getBeginVar()->getInit();
175
- return Begin->isTypeDependent() || Begin->isValueDependent() ||
176
- End->isTypeDependent() || End->isValueDependent();
+ const Expr *End = Iterating->getEndVar()->getInit();
+ return Begin->isInstantiationDependent() || End->isInstantiationDependent();
177
}
178
179
if (isa<CXXDestructuringExpansionStmtPattern>(this))
0 commit comments