mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 00:18:06 +00:00
Simplify this code.
llvm-svn: 85662
This commit is contained in:
parent
0f8d034e2f
commit
14d0be4693
@ -44,8 +44,8 @@ static inline void RemapInstruction(Instruction *I,
|
||||
for (unsigned op = 0, E = I->getNumOperands(); op != E; ++op) {
|
||||
Value *Op = I->getOperand(op);
|
||||
DenseMap<const Value *, Value*>::iterator It = ValueMap.find(Op);
|
||||
if (It != ValueMap.end()) Op = It->second;
|
||||
I->setOperand(op, Op);
|
||||
if (It != ValueMap.end())
|
||||
I->setOperand(op, It->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user