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 | 8e66a4278427b85ff91c4e9f1eb47d2057be88df (patch) | |
| tree | 4c223c058ff42f27dfd09b952eeae98f5b998dd1 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp | |
| parent | 3b740e90852664066c02c290823a94100e0f6434 (diff) | |
| download | llvm-8e66a4278427b85ff91c4e9f1eb47d2057be88df.zip llvm-8e66a4278427b85ff91c4e9f1eb47d2057be88df.tar.gz llvm-8e66a4278427b85ff91c4e9f1eb47d2057be88df.tar.bz2 | |
remove useless cast and fix typos in comment
llvm-svn: 107989
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index 4a7b5f7..d4a4b26 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/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) { |
