[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Nov 17 13:03:18 PST 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.147 -> 1.148
---
Log message:
Use the new ReturnInst constructor.
---
Diffs of the changes: (+1 -5)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.147 llvm-java/lib/Compiler/Compiler.cpp:1.148
--- llvm-java/lib/Compiler/Compiler.cpp:1.147 Wed Nov 17 14:53:24 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Wed Nov 17 15:03:08 2004
@@ -1207,11 +1207,7 @@
A != E; ++A) {
params.push_back(&*A);
}
- Value* r = new CallInst(jniFunction, params, "", bb);
- if (r->getType() == Type::VoidTy)
- new ReturnInst(NULL, bb);
- else
- new ReturnInst(r, bb);
+ new ReturnInst(new CallInst(jniFunction, params, "", bb), bb);
return function;
}
More information about the llvm-commits
mailing list