[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 29 14:30:04 PST 2005
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.204 -> 1.205
---
Log message:
Fix the use of the constructor for SwitchInst which now has a "NumCases"
parameter.
---
Diffs of the changes: (+2 -1)
Compiler.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.204 llvm-java/lib/Compiler/Compiler.cpp:1.205
--- llvm-java/lib/Compiler/Compiler.cpp:1.204 Thu Jan 27 14:04:42 2005
+++ llvm-java/lib/Compiler/Compiler.cpp Sat Jan 29 16:29:53 2005
@@ -1919,7 +1919,8 @@
void do_switch(unsigned defTarget, const SwitchCases& sw) {
Value* v = pop(Type::IntTy);
SwitchInst* in =
- new SwitchInst(v, bbBuilder_->getBasicBlock(defTarget), currentBB_);
+ new SwitchInst(v, bbBuilder_->getBasicBlock(defTarget), sw.size(),
+ currentBB_);
for (unsigned i = 0, e = sw.size(); i != e; ++i)
in->addCase(ConstantSInt::get(Type::IntTy, sw[i].first),
bbBuilder_->getBasicBlock(sw[i].second));
More information about the llvm-commits
mailing list