From e425368eb59687b66620a2c6adc3e426c997d796 Mon Sep 17 00:00:00 2001 From: Sean Hunt Date: Sun, 29 Aug 2010 22:39:32 +0000 Subject: Fix some test-breaking that snuck into my previous commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112460 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/Token.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/clang/Lex/Token.h') diff --git a/include/clang/Lex/Token.h b/include/clang/Lex/Token.h index e6f7c7c3f5..f295411187 100644 --- a/include/clang/Lex/Token.h +++ b/include/clang/Lex/Token.h @@ -145,7 +145,7 @@ public: /// makeUserDefinedLiteral - Set this token to be a user-defined literal void makeUserDefinedLiteral(llvm::BumpPtrAllocator &Alloc) { - PtrData = Alloc.Allocate(sizeof(UDLData), 4); + PtrData = new (Alloc.Allocate(sizeof(UDLData), 4)) UDLData; setFlag(UserDefinedLiteral); } -- cgit v1.2.3