[PATCH] D85574: [Sema] Fix missing warning on initializer lists on field initializers with overloaded operators

Zequan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 18:53:12 PDT 2020


zequanwu added inline comments.


================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:3584-3585
 
       if (!isa<CXXThisExpr>(Base->IgnoreParenImpCasts()))
         return;
 
----------------
rtrieu wrote:
> Does the warning work if it was changed to be "Visit(Base);" before the return here instead of the change above?
Yes, done.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85574



More information about the cfe-commits mailing list