summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-12-25 17:06:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-12-25 17:06:27 +0000
commitc06181b2a7914b4b1ecfd6e153b10dca637b1948 (patch)
treeb3ffbc58eed04f1a1df32c3eb69b469d7a647a21
parentd20ef75b91510c25a80aadaaae4e679dbf68270b (diff)
downloadbcm5719-llvm-c06181b2a7914b4b1ecfd6e153b10dca637b1948.tar.gz
bcm5719-llvm-c06181b2a7914b4b1ecfd6e153b10dca637b1948.zip
Make sure operator new[] and operator delete[] match. This will hopefully silence 3 remaining MSVC warnings.
llvm-svn: 92163
-rw-r--r--clang/include/clang/AST/ASTContext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h
index 0a9fe2aba19..e815c5edbe1 100644
--- a/clang/include/clang/AST/ASTContext.h
+++ b/clang/include/clang/AST/ASTContext.h
@@ -1248,7 +1248,8 @@ inline void *operator new[](size_t Bytes, clang::ASTContext& C,
/// invoking it directly; see the new[] operator for more details. This operator
/// is called implicitly by the compiler if a placement new[] expression using
/// the ASTContext throws in the object constructor.
-inline void operator delete[](void *Ptr, clang::ASTContext &C) throw () {
+inline void operator delete[](void *Ptr, clang::ASTContext &C, size_t)
+ throw () {
C.Deallocate(Ptr);
}
OpenPOWER on IntegriCloud