1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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
This commit is contained in:
Peter Collingbourne 2018-08-23 06:57:49 +00:00
parent 5645346620
commit 5542bfdc97

View File

@ -1036,6 +1036,7 @@ uint64_t WinCOFFObjectWriter::writeObject(MCAssembler &Asm,
// Create the contents of the .llvm_addrsig section.
if (EmitAddrsigSection) {
auto Frag = new MCDataFragment(AddrsigSection);
Frag->setLayoutOrder(0);
raw_svector_ostream OS(Frag->getContents());
for (const MCSymbol *S : AddrsigSyms) {
if (!S->isTemporary()) {