[clang] [llvm] Non constant size and offset in DWARF (PR #141106)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 13:40:43 PDT 2025


================
@@ -834,8 +834,8 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
     auto *ISATy = DBuilder.createPointerType(ClassTy, Size);
 
     ObjTy = DBuilder.createStructType(TheCU, "objc_object", TheCU->getFile(), 0,
-                                      0, 0, llvm::DINode::FlagZero, nullptr,
-                                      llvm::DINodeArray());
+                                      (uint64_t)0, 0, llvm::DINode::FlagZero,
----------------
dwblaikie wrote:

Hrm, not sure how I feel about it - but not strongly enough to push for something else.

But when this is being committed, could commit this clang change separately before the rest of the change, since it's not dependent. (but it's also a really small change/not a big deal to go in/get reverted if needed/etc)

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


More information about the llvm-commits mailing list