[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Dec 8 22:14:58 PST 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.172 -> 1.173
---
Log message:
Fix Abstract testcase.
---
Diffs of the changes: (+2 -3)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.172 llvm-java/lib/Compiler/Compiler.cpp:1.173
--- llvm-java/lib/Compiler/Compiler.cpp:1.172 Tue Dec 7 21:45:19 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Thu Dec 9 00:14:47 2004
@@ -791,10 +791,9 @@
getType(method->getDescriptor(), ClassInfo::ObjectBaseTy));
llvm::Constant* vfun =
llvm::Constant::getNullValue(PointerType::get(funcTy));
- if (!cf->isInterface()) {
+ if (!cf->isInterface() && !method->isAbstract()) {
vfun = module_.getOrInsertFunction(funcName, funcTy);
- if (!method->isAbstract())
- scheduleFunction(cast<Function>(vfun));
+ scheduleFunction(cast<Function>(vfun));
}
unsigned& index = vi.m2iMap[methodDescr];
More information about the llvm-commits
mailing list