summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-04-04 01:33:45 +0000
committerJohn McCall <rjmccall@apple.com>2012-04-04 01:33:45 +0000
commit152c9919e9d2c9d261b598405f2ef30e51b17b43 (patch)
tree9bd7016fd62bbc76f301d3f83f87b771e8ddda7d /clang/lib/CodeGen
parent3abee49d1c06f86761944375c112fcf55f59a261 (diff)
downloadbcm5719-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.cpp7
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");
+ }
};
}
OpenPOWER on IntegriCloud