Skip to content

Commit 6579c81

Browse files
committed
Initialize the address-significance table fragment's layout order.
This fragment is created after layout, which is where the order normally gets set. Should fix a test failure under msan. llvm-svn: 340516
1 parent ae0cafe commit 6579c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/MC/WinCOFFObjectWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ uint64_t WinCOFFObjectWriter::writeObject(MCAssembler &Asm,
10361036
// Create the contents of the .llvm_addrsig section.
10371037
if (EmitAddrsigSection) {
10381038
auto Frag = new MCDataFragment(AddrsigSection);
1039+
Frag->setLayoutOrder(0);
10391040
raw_svector_ostream OS(Frag->getContents());
10401041
for (const MCSymbol *S : AddrsigSyms) {
10411042
if (!S->isTemporary()) {

0 commit comments

Comments
 (0)