mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 16:03:58 +00:00
Use Use::operator= instead of Use::set, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01a76ce8d9
commit
e41a115e6a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user