From 73dfa5bbf76e15c6e61b4aca7159a436f0d24f1f Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 25 Sep 2019 08:45:36 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372828 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/User.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/IR/User.h b/include/llvm/IR/User.h index 19d87c5c621..850ee72a038 100644 --- a/include/llvm/IR/User.h +++ b/include/llvm/IR/User.h @@ -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 -- 2.50.1