[llvm-branch-commits] [llvm-branch] r98030 - /llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp

Evan Cheng evan.cheng at apple.com
Mon Mar 8 17:39:13 PST 2010


Author: evancheng
Date: Mon Mar  8 19:39:13 2010
New Revision: 98030

URL: http://llvm.org/viewvc/llvm-project?rev=98030&view=rev
Log:
Add missing parentheses to broke the dlsym check. rdar://7729782

Modified:
    llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp

Modified: llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp?rev=98030&r1=98029&r2=98030&view=diff
==============================================================================
--- llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp (original)
+++ llvm/branches/Apple/Hermes/lib/ExecutionEngine/JIT/JITEmitter.cpp Mon Mar  8 19:39:13 2010
@@ -775,7 +775,7 @@
     // If this is an external function pointer, we can force the JIT to
     // 'compile' it, which really just adds it to the map.  In dlsym mode, 
     // external functions are forced through a stub, regardless of reloc type.
-    if (isNonGhostDeclaration(F) || F->hasAvailableExternallyLinkage() &&
+    if ((isNonGhostDeclaration(F) || F->hasAvailableExternallyLinkage()) &&
         !TheJIT->areDlsymStubsEnabled())
       return TheJIT->getPointerToFunction(F);
   }





More information about the llvm-branch-commits mailing list