diff options
author | John McCall <rjmccall@apple.com> | 2012-04-04 01:33:45 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-04-04 01:33:45 +0000 |
commit | beeb460aa571d23318fc0f6b8abcd868def791fa (patch) | |
tree | 19c733e30f6f3229a3be74180c1dbdcc02b832b5 | |
parent | 73f428cf2c5a0847014a3125b7bb8d271aaa7c65 (diff) |
ErrorUnsupported on array cookies in the MS C++ ABI code;
patch by Timur Iskhodzhanov.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153990 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MicrosoftCXXABI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MicrosoftCXXABI.cpp b/lib/CodeGen/MicrosoftCXXABI.cpp index e200e79617..825e041522 100644 --- a/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/lib/CodeGen/MicrosoftCXXABI.cpp @@ -78,6 +78,13 @@ public: // delete[] p; // } // Whereas it prints "104" and "104" if you give A a destructor. + void ReadArrayCookie(CodeGenFunction &CGF, llvm::Value *Ptr, + const CXXDeleteExpr *expr, + QualType ElementType, llvm::Value *&NumElements, + llvm::Value *&AllocPtr, CharUnits &CookieSize) { + CGF.CGM.ErrorUnsupported(expr, "don't know how to handle array cookies " + "in the Microsoft C++ ABI"); + } }; } |