[PATCH] D62648: [Sema][Typo] Fix assertion failure for expressions with multiple typos
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 15:18:06 PDT 2019
rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Sema/SemaExprCXX.cpp:7762-7764
+ llvm::SmallDenseMap<TypoExpr *, ExprResult, 2> NewTransformCache;
+ auto SavedTransformCache = TransformCache;
+ TransformCache = NewTransformCache;
----------------
dgoldman wrote:
> Should I do the same `std::move` and `clear` here as well?
Yes, please.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62648/new/
https://reviews.llvm.org/D62648
More information about the cfe-commits
mailing list