[llvm] [DebugInfo] Add num_extra_inhabitants to debug info (PR #112590)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 09:49:24 PST 2024
================
@@ -551,7 +555,7 @@ DIBuilder::createVariantPart(DIScope *Scope, StringRef Name, DIFile *File,
auto *R = DICompositeType::get(
VMContext, dwarf::DW_TAG_variant_part, Name, File, LineNumber,
getNonCompileUnitScope(Scope), nullptr, SizeInBits, AlignInBits, 0, Flags,
- Elements, 0, nullptr, nullptr, UniqueIdentifier, Discriminator);
+ Elements, 0, nullptr, nullptr, UniqueIdentifier, 0, Discriminator);
----------------
Michael137 wrote:
This happened [previously too](https://github.com/llvm/llvm-project/pull/72234#issuecomment-1813093440) with a similar change to the `::get` APIs. Wonder if it's worth doing something about this to catch these types of issues at compile time. E.g., using stronger types is my first instinct.
https://github.com/llvm/llvm-project/pull/112590
More information about the llvm-commits
mailing list