- this used in lambda expression parameter declarations needs no capture.
- Set up CXXThisOverride for default template arguments of a lambda.
A similar fix to this is c3d2ebb60f604.
Differential D102531
PR45881: Properly use CXXThisOverride for templated lambda ychen on May 14 2021, 1:51 PM. Authored by
Details
A similar fix to this is c3d2ebb60f604.
Diff Detail
Event Timeline
Comment Actions We recently enabled assertions in our Fuchsia builds, and our builds started to fail: FAILED: obj/src/lib/storage/vfs/cpp/libcpp.fuchsia_vfs.cc.o ../../../recipe_cleanup/clangLhcV7J/bin/clang++ -MD -MF obj/src/lib/storage/vfs/cpp/libcpp.fuchsia_vfs.cc.o.d -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -… clang++: clang/lib/Sema/SemaExprCXX.cpp:1144: clang::QualType adjustCVQualifiersForCXXThisWithinLambda(ArrayRef<clang::sema::FunctionScopeInfo *>, clang::QualType, clang::DeclContext *, clang::ASTC… clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation) This patch seems to be fixing the issue that we are running. Comment Actions @aaron.ballman would it be possible for you to review this patch, so we can fix our broken builds? Comment Actions LGTM, but please wait a day or so before landing in case @rsmith spots something I've missed (the only change I wasn't 100% certain on was lifting the assert predicate; it seems correct to me, but I'm wary of removing asserts). Comment Actions
Sounds good, thank you very much! |