Fix inverted condition.
authorJim Grosbach <grosbach@apple.com>
Fri, 20 Jan 2012 22:44:03 +0000 (22:44 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 20 Jan 2012 22:44:03 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148593 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

index d40e6591534a083f7b3ed02d6dbcef2ee5b65015..1926af8885d95fed3dac81b70ef6b471c725d07c 100644 (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);