Skip to content

Commit 546066e

Browse files
committed
Fix DIBuilder::createVariantPart after f6617d6
which ended up passing 0 for the Discriminator arg, Discriminator for the DataLocation arg, etc. The DICompositeType::get's new NumExtraInhabitants parameter is at the end, and has a default value, so no change in the caller is necessary. See comment on #112590
1 parent d74127e commit 546066e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/DIBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ DIBuilder::createVariantPart(DIScope *Scope, StringRef Name, DIFile *File,
554554
auto *R = DICompositeType::get(
555555
VMContext, dwarf::DW_TAG_variant_part, Name, File, LineNumber,
556556
getNonCompileUnitScope(Scope), nullptr, SizeInBits, AlignInBits, 0, Flags,
557-
Elements, 0, nullptr, nullptr, UniqueIdentifier, 0, Discriminator);
557+
Elements, 0, nullptr, nullptr, UniqueIdentifier, Discriminator);
558558
trackIfUnresolved(R);
559559
return R;
560560
}

0 commit comments

Comments
 (0)