summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-28 18:30:18 +0000
committerChris Lattner <sabre@nondot.org>2007-11-28 18:30:18 +0000
commit749478a61b89ddf67582d0b3e67e43e4ed126d58 (patch)
tree879873158847b955a6418c7b917b4f890da60c50 /llvm/lib/ExecutionEngine
parentf4769da4b3b06f492448573fad868b7f0d35d545 (diff)
downloadbcm5719-llvm-749478a61b89ddf67582d0b3e67e43e4ed126d58.tar.gz
bcm5719-llvm-749478a61b89ddf67582d0b3e67e43e4ed126d58.zip
for consistency, allow a fallthrough if the final check returns null.
llvm-svn: 44406
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/Intercept.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
index a4d0faa04ba..642108422c1 100644
--- a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -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
OpenPOWER on IntegriCloud