Simplify this code.

llvm-svn: 85662
This commit is contained in:
Dan Gohman 2009-10-31 14:46:50 +00:00
parent af94015c18
commit fa8969f70e
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ static inline void RemapInstruction(Instruction *I,
for (unsigned op = 0, E = I->getNumOperands(); op != E; ++op) { for (unsigned op = 0, E = I->getNumOperands(); op != E; ++op) {
Value *Op = I->getOperand(op); Value *Op = I->getOperand(op);
DenseMap<const Value *, Value*>::iterator It = ValueMap.find(Op); DenseMap<const Value *, Value*>::iterator It = ValueMap.find(Op);
if (It != ValueMap.end()) Op = It->second; if (It != ValueMap.end())
I->setOperand(op, Op); I->setOperand(op, It->second);
} }
} }