projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b6c4f5
)
remove extraneous cast
author
Chris Lattner
<sabre@nondot.org>
Sat, 26 Feb 2005 18:33:28 +0000
(18:33 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 26 Feb 2005 18:33:28 +0000
(18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20334
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 7e442b2f654dd88cccb35f106415b7897388d98b..870a90143b0cfe9e871edcedc19aaa15a165f78a 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-406,8
+406,7
@@
GetValueEqualityComparisonCases(TerminatorInst *TI,
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();
}