aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit5e037fce2b037fce1aa5a96d2c917fcb716c5a33 (patch)
tree7afe87b9e945ed567222a0c9c27214071fea2738 /lib/ExecutionEngine
parent4b341b41783744591eb919262fbffe81a2d4fcf3 (diff)
downloadexternal_llvm-5e037fce2b037fce1aa5a96d2c917fcb716c5a33.zip
external_llvm-5e037fce2b037fce1aa5a96d2c917fcb716c5a33.tar.gz
external_llvm-5e037fce2b037fce1aa5a96d2c917fcb716c5a33.tar.bz2
for consistency, allow a fallthrough if the final check returns null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index a4d0faa..6421084 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/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