ErrorUnsupported on array cookies in the MS C++ ABI code;

patch by Timur Iskhodzhanov.

llvm-svn: 153990
This commit is contained in:
John McCall 2012-04-04 01:33:45 +00:00
parent 3abee49d1c
commit 152c9919e9
1 changed files with 7 additions and 0 deletions

View 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");
}
};
}