From 6cd7f1bca63e0524b0678640f4c3194db952bef2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 25 May 2015 14:18:24 +0000 Subject: [PATCH] Use a simple initial value for the ordinal. The odd value was only used by the ELF writer to check if the section was one that it had created. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238140 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCSection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index ca902f65944..dfe3dc90923 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -40,7 +40,7 @@ private: /// The alignment requirement of this section. unsigned Alignment = 1; /// The section index in the assemblers section list. - unsigned Ordinal = ~UINT32_C(0); + unsigned Ordinal = 0; protected: MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin) -- 2.34.1