[llvm-commits] CVS: llvm-java/runtime/runtime.c
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Feb 2 08:27:06 PST 2005
Changes in directory llvm-java/runtime:
runtime.c updated: 1.18 -> 1.19
---
Log message:
Make llvm-java compile on Windows. Patch contributed by Jeff Cohen!
---
Diffs of the changes: (+4 -1)
runtime.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm-java/runtime/runtime.c
diff -u llvm-java/runtime/runtime.c:1.18 llvm-java/runtime/runtime.c:1.19
--- llvm-java/runtime/runtime.c:1.18 Wed Feb 2 10:18:48 2005
+++ llvm-java/runtime/runtime.c Wed Feb 2 10:26:54 2005
@@ -9,6 +9,7 @@
struct llvm_java_object_header {
/* gc info, hash info, locking */
+ int dummy;
};
struct llvm_java_object_base {
@@ -41,11 +42,13 @@
jint llvm_java_is_instance_of(jobject obj,
struct llvm_java_object_vtable* clazz) {
+ struct llvm_java_object_vtable* objClazz;
+
/* trivial case 1: a null object can be cast to any type */
if (!obj)
return JNI_TRUE;
- struct llvm_java_object_vtable* objClazz = obj->vtable;
+ objClazz = obj->vtable;
/* trivial case 2: this object is of class clazz */
if (objClazz == clazz)
return JNI_TRUE;
More information about the llvm-commits
mailing list