From 814e219fc6d5faeb48e4fd5375843346f2d4a7a7 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 6 Jul 2012 16:41:59 +0000 Subject: Stop using new[] on llvm::BumpPtrAllocator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159833 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/CommentParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/AST/CommentParser.cpp') diff --git a/lib/AST/CommentParser.cpp b/lib/AST/CommentParser.cpp index 75eae46b8b..14a2d85ae4 100644 --- a/lib/AST/CommentParser.cpp +++ b/lib/AST/CommentParser.cpp @@ -47,7 +47,8 @@ BlockCommandComment *Parser::parseBlockCommandArgs( TextTokenRetokenizer &Retokenizer, unsigned NumArgs) { typedef BlockCommandComment::Argument Argument; - Argument *Args = new (Allocator) Argument[NumArgs]; + Argument *Args = + new (Allocator.Allocate(NumArgs)) Argument[NumArgs]; unsigned ParsedArgs = 0; Token Arg; while (ParsedArgs < NumArgs && Retokenizer.lexWord(Arg)) { -- cgit v1.2.1