[llvm] r372828 - Fix signature of overloaded operator delete.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 01:45:36 PDT 2019


Author: foad
Date: Wed Sep 25 01:45:36 2019
New Revision: 372828

URL: http://llvm.org/viewvc/llvm-project?rev=372828&view=rev
Log:
Fix signature of overloaded operator delete.

This overload was left over from an operator new that was removed in
r123027. Fix it to match another operator new that was added in r248453.

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

Modified: llvm/trunk/include/llvm/IR/User.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/User.h?rev=372828&r1=372827&r2=372828&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/User.h (original)
+++ llvm/trunk/include/llvm/IR/User.h Wed Sep 25 01:45:36 2019
@@ -111,7 +111,7 @@ public:
 #endif
   }
   /// Placement delete - required by std, called if the ctor throws.
-  void operator delete(void *Usr, unsigned, bool) {
+  void operator delete(void *Usr, unsigned, unsigned) {
     // Note: If a subclass manipulates the information which is required to calculate the
     // Usr memory pointer, e.g. NumUserOperands, the operator delete of that subclass has
     // to restore the changed information to the original value, since the dtor of that class




More information about the llvm-commits mailing list