mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[IR] Remove override of operator new from PHINode.
This just forwarded to the same signature in User. The version in User is protected so there's no danger of anyone outside of PHINode constructing with the wrong operator new. All PHINodes are created by a static Create function in PHINode. I believe at one point in history this called User::operator new(s, 0) so it was useful then. llvm-svn: 305255
This commit is contained in:
parent
cd9f983fb4
commit
9a2bcc12c4
@ -2584,11 +2584,6 @@ class PHINode : public Instruction {
|
||||
allocHungoffUses(ReservedSpace);
|
||||
}
|
||||
|
||||
// allocate space for exactly zero operands
|
||||
void *operator new(size_t s) {
|
||||
return User::operator new(s);
|
||||
}
|
||||
|
||||
protected:
|
||||
// Note: Instruction needs to be a friend here to call cloneImpl.
|
||||
friend class Instruction;
|
||||
|
Loading…
x
Reference in New Issue
Block a user