[vmkit-commits] [vmkit] r142980 - /vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Oct 25 15:30:18 PDT 2011
Author: geoffray
Date: Tue Oct 25 17:30:18 2011
New Revision: 142980
URL: http://llvm.org/viewvc/llvm-project?rev=142980&view=rev
Log:
Remove clang warning.
Modified:
vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp
Modified: vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp?rev=142980&r1=142979&r2=142980&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp (original)
+++ vmkit/trunk/lib/J3/VMCore/JnjvmClassLoader.cpp Tue Oct 25 17:30:18 2011
@@ -1005,12 +1005,10 @@
word_t JnjvmClassLoader::nativeLookup(JavaMethod* meth, bool& j3,
char* buf) {
- word_t res;
-
// Is this method defined via registerNatives()?
// If so, use that definition.
- if (res = getRegisteredNative(meth))
- return res;
+ word_t res = getRegisteredNative(meth);
+ if (res != 0) return res;
// Otherwise, try to resolve the method with a symbol lookup
// First as the base method
More information about the vmkit-commits
mailing list