diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-06 00:37:24 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-06 00:37:24 +0000 |
commit | 4598bd53ab89c3d120ad8249abbfdc7e2d64d291 (patch) | |
tree | f9e741e33a79b03ecd1d3961f531018ce421ed66 /lib/Transforms/Utils | |
parent | ce8e4647bf4fff92bf5855b494461a039200b418 (diff) | |
download | external_llvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.zip external_llvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.tar.gz external_llvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.tar.bz2 |
Use type helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index c4c1423..0dea844 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -3160,7 +3160,7 @@ static bool TurnSwitchRangeIntoICmp(SwitchInst *SI, IRBuilder<> &Builder) { /// and use it to remove dead cases. static bool EliminateDeadSwitchCases(SwitchInst *SI) { Value *Cond = SI->getCondition(); - unsigned Bits = cast<IntegerType>(Cond->getType())->getBitWidth(); + unsigned Bits = Cond->getType()->getIntegerBitWidth(); APInt KnownZero(Bits, 0), KnownOne(Bits, 0); ComputeMaskedBits(Cond, KnownZero, KnownOne); |