[PATCH] D158093: [Sema] Clean up ActionResult type a little. NFCI

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 18 04:24:24 PDT 2023


tbaeder added inline comments.


================
Comment at: clang/include/clang/Sema/Ownership.h:180
 
-  /// An opaque type for threading parsed type information through the
-  /// parser.
-  using ParsedType = OpaquePtr<QualType>;
-  using UnionParsedType = UnionOpaquePtr<QualType>;
+// If we PtrTy has a free bit, we can represent "invalid" as nullptr|1.
+template <typename PtrTy> class ActionResult<PtrTy, true> {
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158093



More information about the cfe-commits mailing list