[PATCH] D123783: [clang] Eliminate TypeProcessingState::trivial.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 14 11:06:36 PDT 2022


aaron.ballman added inline comments.


================
Comment at: clang/lib/Sema/SemaType.cpp:170
     /// Whether we saved the attributes in the decl spec.
     bool hasSavedAttrs;
 
----------------
Isn't the same true for this variable? It seems like:

`trivial` == `savedAttrs.empty()`
`hasSavedAttrs` == `!savedAttrs.empty()`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123783



More information about the cfe-commits mailing list