[llvm] r340516 - Initialize the address-significance table fragment's layout order.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 22 23:57:49 PDT 2018
Author: pcc
Date: Wed Aug 22 23:57:49 2018
New Revision: 340516
URL: http://llvm.org/viewvc/llvm-project?rev=340516&view=rev
Log:
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.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=340516&r1=340515&r2=340516&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Wed Aug 22 23:57:49 2018
@@ -1036,6 +1036,7 @@ uint64_t WinCOFFObjectWriter::writeObjec
// 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()) {
More information about the llvm-commits
mailing list