Typo noticed by Duncan.
authorTorok Edwin <edwintorok@gmail.com>
Tue, 30 Mar 2010 20:15:13 +0000 (20:15 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 30 Mar 2010 20:15:13 +0000 (20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99918 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

index 8add3f5..3ba783b 100644 (file)
@@ -265,7 +265,7 @@ GenericValue Interpreter::callExternalFunction(Function *F,
   if (RF == RawFunctions->end()) {
     RawFn = (RawFunc)(intptr_t)
       sys::DynamicLibrary::SearchForAddressOfSymbol(F->getName());
-    if (!RawnFn)
+    if (!RawFn)
        RawFn = (RawFunc)(intptr_t)getPointerToGlobalIfAvailable(F);
     if (RawFn != 0)
       RawFunctions->insert(std::make_pair(F, RawFn));  // Cache for later