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 | 152c9919e9d2c9d261b598405f2ef30e51b17b43 (patch) | |
tree | 9bd7016fd62bbc76f301d3f83f87b771e8ddda7d /clang/lib/CodeGen | |
parent | 3abee49d1c06f86761944375c112fcf55f59a261 (diff) | |
download | bcm5719-llvm-152c9919e9d2c9d261b598405f2ef30e51b17b43.tar.gz bcm5719-llvm-152c9919e9d2c9d261b598405f2ef30e51b17b43.zip |
ErrorUnsupported on array cookies in the MS C++ ABI code;
patch by Timur Iskhodzhanov.
llvm-svn: 153990
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/MicrosoftCXXABI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp index e200e796170..825e0415227 100644 --- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/clang/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"); + } }; } |