projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1db35
)
[ValueMapper] Range-loopify to improve readability. NFC.
author
Davide Italiano
<davide@freebsd.org>
Thu, 14 Apr 2016 18:07:32 +0000
(18:07 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Thu, 14 Apr 2016 18:07:32 +0000
(18:07 +0000)
llvm-svn: 266350
llvm/lib/Transforms/Utils/ValueMapper.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/ValueMapper.cpp
b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index
772800c
..
44efa5d
100644
(file)
--- a/
llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ b/
llvm/lib/Transforms/Utils/ValueMapper.cpp
@@
-747,11
+747,11
@@
void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VM,
void Mapper::remapInstruction(Instruction *I) {
// Remap operands.
- for (Use
r::op_iterator op = I->op_begin(), E = I->op_end(); op != E; ++op
) {
- Value *V = mapValue(
*o
p);
+ for (Use
&Op : I->operands()
) {
+ Value *V = mapValue(
O
p);
// If we aren't ignoring missing entries, assert that something happened.
if (V)
-
*o
p = V;
+
O
p = V;
else
assert((Flags & RF_IgnoreMissingLocals) &&
"Referenced value not in value map!");