diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-01-20 22:44:03 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-01-20 22:44:03 +0000 |
commit | b442d7c6bf920b892b4b098923c1652700ee07e6 (patch) | |
tree | a0bfb08aff9ef2e897ce531f9cbf2429acb20368 /lib/ExecutionEngine | |
parent | 1aea430b8834f7bed3a14eda5027eac2133d6496 (diff) |
Fix inverted condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index d40e659153..1926af8885 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); |