[llvm-commits] [llvm] r44406 - /llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 28 10:30:18 PST 2007
Author: lattner
Date: Wed Nov 28 12:30:18 2007
New Revision: 44406
URL: http://llvm.org/viewvc/llvm-project?rev=44406&view=rev
Log:
for consistency, allow a fallthrough if the final check returns null.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp?rev=44406&r1=44405&r2=44406&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp Wed Nov 28 12:30:18 2007
@@ -113,7 +113,8 @@
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
More information about the llvm-commits
mailing list