diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-09 16:42:04 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-09 16:42:04 +0000 |
commit | 19e5ada58a8a07d3d6d67312550f6d0791d84c3c (patch) | |
tree | 525190fa0dee59767783726538f8a434a1be19c0 | |
parent | f64f9cf7ec39ae91bca84dc6ad3c8fc3343b358a (diff) |
remove useless cast and fix typos in comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107989 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/ScalarEvolutionExpander.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 4a7b5f7ce5..d4a4b26e25 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -21,10 +21,10 @@ #include "llvm/ADT/STLExtras.h" using namespace llvm; -/// ReuseOrCreateCast - Arange for there to be a cast of V to Ty at IP, +/// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP, /// reusing an existing cast if a suitable one exists, moving an existing /// cast if a suitable one exists but isn't in the right place, or -/// or creating a new one. +/// creating a new one. Value *SCEVExpander::ReuseOrCreateCast(Value *V, const Type *Ty, Instruction::CastOps Op, BasicBlock::iterator IP) { @@ -33,7 +33,7 @@ Value *SCEVExpander::ReuseOrCreateCast(Value *V, const Type *Ty, UI != E; ++UI) { User *U = *UI; if (U->getType() == Ty) - if (CastInst *CI = dyn_cast<CastInst>(cast<Instruction>(U))) + if (CastInst *CI = dyn_cast<CastInst>(U)) if (CI->getOpcode() == Op) { // If the cast isn't where we want it, fix it. if (BasicBlock::iterator(CI) != IP) { |