[PATCH] D58659: [Sema] Fix assertion when `auto` parameter in lambda has an attribute.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 09:38:29 PST 2019


aaron.ballman added inline comments.


================
Comment at: clang/lib/Sema/SemaType.cpp:261
+    /// necessary.
+    QualType ReplaceAutoType(QualType TypeWithAuto, QualType Replacement) {
+      QualType T = sema.ReplaceAutoType(TypeWithAuto, Replacement);
----------------
I think this work should be done within `SubstituteDeducedTypeTransform` rather than on the side. Any caller to `Sema::ReplaceAutoType()` should get this same behavior.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58659/new/

https://reviews.llvm.org/D58659





More information about the cfe-commits mailing list