[PATCH] D112374: [clang] Implement ElaboratedType sugaring for types written bare

NAKAMURA Takumi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 20:48:00 PDT 2022


chapuni added inline comments.


================
Comment at: clang/lib/Sema/TypeLocBuilder.cpp:159
 
-  assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) &&
+  unsigned FDSz = TypeLoc::getFullDataSizeForType(T);
+  assert(Capacity - Index == FDSz &&
----------------
It causes a warning with -Asserts. May be rolled back.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112374



More information about the cfe-commits mailing list