[llvm] r305138 - [IR] Remove unnecessary override of operator new in ExtractValueInst. It's already inherited from UnaryInstruction. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 23:58:20 PDT 2017


Author: ctopper
Date: Sat Jun 10 01:58:19 2017
New Revision: 305138

URL: http://llvm.org/viewvc/llvm-project?rev=305138&view=rev
Log:
[IR] Remove unnecessary override of operator new in ExtractValueInst. It's already inherited from UnaryInstruction. NFC

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=305138&r1=305137&r2=305138&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Sat Jun 10 01:58:19 2017
@@ -2331,9 +2331,6 @@ class ExtractValueInst : public UnaryIns
                           ArrayRef<unsigned> Idxs,
                           const Twine &NameStr, BasicBlock *InsertAtEnd);
 
-  // allocate space for exactly one operand
-  void *operator new(size_t s) { return User::operator new(s, 1); }
-
   void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
 
 protected:




More information about the llvm-commits mailing list