[clang] [Clang] Optimize some `getBeginLoc` implementations (PR #141058)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Thu May 22 07:02:55 PDT 2025


================
@@ -563,17 +563,21 @@ class alignas(void *) Stmt {
     unsigned HasFPFeatures : 1;
 
     /// True if the call expression is a must-elide call to a coroutine.
+    LLVM_PREFERRED_TYPE(bool)
     unsigned IsCoroElideSafe : 1;
 
-    /// Padding used to align OffsetToTrailingObjects to a byte multiple.
-    unsigned : 24 - 4 - NumExprBits;
+    /// Tracks When CallExpr is used to represent an explicit object
----------------
zyn0217 wrote:

```suggestion
    /// Tracks when CallExpr is used to represent an explicit object
```

https://github.com/llvm/llvm-project/pull/141058


More information about the cfe-commits mailing list