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

Fix inverted condition.

llvm-svn: 148593
This commit is contained in:
Jim Grosbach 2012-01-20 22:44:03 +00:00
parent 0ecda3fc14
commit 472cca5206

View File

@ -272,7 +272,7 @@ loadSegment64(const MachOObject *Obj,
// Allocate memory via the MM for the section.
uint8_t *Buffer;
uint32_t SectionID = Sections.size();
if (Sect->Flags != 0x80000400)
if (Sect->Flags == 0x80000400)
Buffer = MemMgr->allocateCodeSection(Sect->Size, Sect->Align, SectionID);
else
Buffer = MemMgr->allocateDataSection(Sect->Size, Sect->Align, SectionID);