================
@@ -1993,14 +1993,11 @@ void
CFGBuilder::addAutomaticObjDestruction(LocalScope::const_iterator B,
return;
SmallVector<VarDecl *, 10> DeclsNeedDestruction;
- DeclsNeedDestruction.reserve(B.distance(E));
----------------
kazutakahirata wrote:
Should we remove `LocalScope::const_iterator::distance` earlier in this file?
IIUC, this PR removes all callers of `distance`.
https://github.com/llvm/llvm-project/pull/243630
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits