[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerSwitch.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 25 09:16:01 PST 2004
Changes in directory llvm/lib/Transforms/Scalar:
LowerSwitch.cpp updated: 1.10 -> 1.11
---
Log message:
Fix incorrect debug code
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Transforms/Scalar/LowerSwitch.cpp
diff -u llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.10 llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.11
--- llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.10 Fri Jan 9 00:02:20 2004
+++ llvm/lib/Transforms/Scalar/LowerSwitch.cpp Wed Feb 25 09:15:04 2004
@@ -115,7 +115,8 @@
Case& Pivot = *(Begin + Mid);
DEBUG(std::cerr << "Pivot ==> "
- << cast<ConstantUInt>(Pivot.first)->getValue() << "\n");
+ << (int64_t)cast<ConstantInt>(Pivot.first)->getRawValue()
+ << "\n");
BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val,
OrigBlock, Default);
More information about the llvm-commits
mailing list