[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Apr 2 18:43:20 PST 2005
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.279 -> 1.280
---
Log message:
Pass the class record as a second argument in a JNI call to a static
method.
---
Diffs of the changes: (+3 -1)
Compiler.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.279 llvm-java/lib/Compiler/Compiler.cpp:1.280
--- llvm-java/lib/Compiler/Compiler.cpp:1.279 Sat Apr 2 18:22:55 2005
+++ llvm-java/lib/Compiler/Compiler.cpp Sat Apr 2 20:43:09 2005
@@ -287,7 +287,9 @@
std::vector<Value*> params;
params.push_back(JNIEnvPtr_);
if (method->isStatic())
- params.push_back(llvm::Constant::getNullValue(resolver_->getObjectBaseType()));
+ params.push_back(
+ new CastInst(method->getParent()->getClassRecord(),
+ resolver_->getObjectBaseType(), TMP, bb));
for (Function::arg_iterator A = function->arg_begin(),
E = function->arg_end(); A != E; ++A) {
params.push_back(
More information about the llvm-commits
mailing list