[PATCH] D127259: [CodeGen] guarantee templated static variables are initialized in the reverse instantiation order
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 3 07:57:47 PST 2023
shafik added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:19907
+ if (Iter != I.end()) {
+ SemaRef.PendingInstantiations.push_back(*Iter);
+ I.erase(Iter);
----------------
Doesn't this invalidate the iterators?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127259/new/
https://reviews.llvm.org/D127259
More information about the cfe-commits
mailing list