[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 26 10:33:44 PST 2005
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.64 -> 1.65
---
Log message:
remove extraneous cast
---
Diffs of the changes: (+1 -2)
SimplifyCFG.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.64 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.65
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.64 Thu Feb 24 00:17:52 2005
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Sat Feb 26 12:33:28 2005
@@ -406,8 +406,7 @@
if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
Cases.reserve(SI->getNumCases());
for (unsigned i = 1, e = SI->getNumCases(); i != e; ++i)
- Cases.push_back(std::make_pair(cast<ConstantInt>(SI->getCaseValue(i)),
- SI->getSuccessor(i)));
+ Cases.push_back(std::make_pair(SI->getCaseValue(i), SI->getSuccessor(i)));
return SI->getDefaultDest();
}
More information about the llvm-commits
mailing list