mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Stop returning a Use* from allocHungOffUses.
This always just set the User::OperandList which is now set in that method instead of being returned. Reviewed by Duncan Exon Smith. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2234,7 +2234,7 @@ class PHINode : public Instruction {
|
||||
: Instruction(Ty, Instruction::PHI, nullptr, 0, InsertBefore),
|
||||
ReservedSpace(NumReservedValues) {
|
||||
setName(NameStr);
|
||||
OperandList = allocHungoffUses(ReservedSpace);
|
||||
allocHungoffUses(ReservedSpace);
|
||||
}
|
||||
|
||||
PHINode(Type *Ty, unsigned NumReservedValues, const Twine &NameStr,
|
||||
@@ -2242,14 +2242,14 @@ class PHINode : public Instruction {
|
||||
: Instruction(Ty, Instruction::PHI, nullptr, 0, InsertAtEnd),
|
||||
ReservedSpace(NumReservedValues) {
|
||||
setName(NameStr);
|
||||
OperandList = allocHungoffUses(ReservedSpace);
|
||||
allocHungoffUses(ReservedSpace);
|
||||
}
|
||||
protected:
|
||||
// allocHungoffUses - this is more complicated than the generic
|
||||
// User::allocHungoffUses, because we have to allocate Uses for the incoming
|
||||
// values and pointers to the incoming blocks, all in one allocation.
|
||||
Use *allocHungoffUses(unsigned N) {
|
||||
return User::allocHungoffUses(N, /* IsPhi */ true);
|
||||
void allocHungoffUses(unsigned N) {
|
||||
User::allocHungoffUses(N, /* IsPhi */ true);
|
||||
}
|
||||
|
||||
PHINode *clone_impl() const override;
|
||||
|
Reference in New Issue
Block a user