for consistency, allow a fallthrough if the final check returns null.
authorChris Lattner <sabre@nondot.org>
Wed, 28 Nov 2007 18:30:18 +0000 (18:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Nov 2007 18:30:18 +0000 (18:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44406 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/Intercept.cpp

index a4d0faa04ba3cc62a92b75e4434ceeae63481c08..642108422c1490baf156a263426eee65dd25480c 100644 (file)
@@ -113,7 +113,8 @@ void *JIT::getPointerToNamedFunction(const std::string &Name) {
     std::string Prefix = std::string(Name.begin(), Name.end()-9);
     if (void *Ptr = getPointerToNamedFunction(Prefix+"$LDBL128"))
       return Ptr;
-    return getPointerToNamedFunction(Prefix);
+    if (void *Ptr = getPointerToNamedFunction(Prefix))
+      return Ptr;
   }
 #endif