mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +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:
@ -40,7 +40,7 @@ void User::replaceUsesOfWith(Value *From, Value *To) {
|
||||
// User allocHungoffUses Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Use *User::allocHungoffUses(unsigned N, bool IsPhi) {
|
||||
void User::allocHungoffUses(unsigned N, bool IsPhi) {
|
||||
// Allocate the array of Uses, followed by a pointer (with bottom bit set) to
|
||||
// the User.
|
||||
size_t size = N * sizeof(Use) + sizeof(Use::UserRef);
|
||||
@ -49,11 +49,9 @@ Use *User::allocHungoffUses(unsigned N, bool IsPhi) {
|
||||
Use *Begin = static_cast<Use*>(::operator new(size));
|
||||
Use *End = Begin + N;
|
||||
(void) new(End) Use::UserRef(const_cast<User*>(this), 1);
|
||||
Use *Uses = Use::initTags(Begin, End);
|
||||
OperandList = Uses;
|
||||
OperandList = Use::initTags(Begin, End);
|
||||
// Tag this operand list as being a hung off.
|
||||
HasHungOffUses = true;
|
||||
return Uses;
|
||||
}
|
||||
|
||||
void User::growHungoffUses(unsigned NewNumUses, bool IsPhi) {
|
||||
|
Reference in New Issue
Block a user