From b442d7c6bf920b892b4b098923c1652700ee07e6 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 20 Jan 2012 22:44:03 +0000 Subject: [PATCH] Fix inverted condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148593 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index d40e6591534..1926af8885d 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -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); -- 2.34.1