[clang] [Clang][counted_by] Refactor __builtin_dynamic_object_size on FAMs (PR #122198)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 9 14:49:08 PST 2025


================
@@ -1343,6 +1430,12 @@ CodeGenFunction::emitBuiltinObjectSize(const Expr *E, unsigned Type,
   assert(Ptr->getType()->isPointerTy() &&
          "Non-pointer passed to __builtin_object_size?");
 
+  if (IsDynamic)
----------------
bwendling wrote:

At this point, we know that `EmittedE` has a value. See line 1429.

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


More information about the cfe-commits mailing list