[llvm-commits] [llvm] r148593 - /llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

Jim Grosbach grosbach at apple.com
Fri Jan 20 14:44:03 PST 2012


Author: grosbach
Date: Fri Jan 20 16:44:03 2012
New Revision: 148593

URL: http://llvm.org/viewvc/llvm-project?rev=148593&view=rev
Log:
Fix inverted condition.

Modified:
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp?rev=148593&r1=148592&r2=148593&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp Fri Jan 20 16:44:03 2012
@@ -272,7 +272,7 @@
     // 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);





More information about the llvm-commits mailing list