summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-05 16:31:55 +0000
committerDan Gohman <gohman@apple.com>2009-10-05 16:31:55 +0000
commit238cf498127952f2acb62850d7da47bb98a4e1f8 (patch)
tree87626d99cdb2745e9a4bd55add1615f0042abe49 /llvm/lib
parent2728569a38a2171248f2d818f19ce5ae25f09423 (diff)
downloadbcm5719-llvm-238cf498127952f2acb62850d7da47bb98a4e1f8.tar.gz
bcm5719-llvm-238cf498127952f2acb62850d7da47bb98a4e1f8.zip
Use Use::operator= instead of Use::set, for consistency.
llvm-svn: 83310
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index fae8629cde6..26bf27c0695 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -774,7 +774,7 @@ bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask,
Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask,
KnownZero, KnownOne, Depth);
if (NewVal == 0) return false;
- U.set(NewVal);
+ U = NewVal;
return true;
}
@@ -12819,7 +12819,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
if (Constant *NewC = ConstantFoldConstantExpression(CE,
F.getContext(), TD))
if (NewC != CE) {
- i->set(NewC);
+ *i = NewC;
MadeIRChange = true;
}
}
OpenPOWER on IntegriCloud