]> granicus.if.org Git - clang/commitdiff
ErrorUnsupported on array cookies in the MS C++ ABI code;
authorJohn McCall <rjmccall@apple.com>
Wed, 4 Apr 2012 01:33:45 +0000 (01:33 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 4 Apr 2012 01:33:45 +0000 (01:33 +0000)
patch by Timur Iskhodzhanov.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153990 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MicrosoftCXXABI.cpp

index e200e79617016a6380b2c057764a124090624e70..825e0415227dd162ca5476bef2023ac87482ff1a 100644 (file)
@@ -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");
+  }
 };
 
 }