diff options
author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2010-08-29 22:39:32 +0000 |
---|---|---|
committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2010-08-29 22:39:32 +0000 |
commit | e425368eb59687b66620a2c6adc3e426c997d796 (patch) | |
tree | e3c1d0e04a292782b1a8f4a5c7d86a60aff14da0 /include/clang/Lex/Token.h | |
parent | 0016d519b831859526b79405cdae4c64c73731c8 (diff) |
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
Diffstat (limited to 'include/clang/Lex/Token.h')
-rw-r--r-- | include/clang/Lex/Token.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |