summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex/Token.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Lex/Token.h')
-rw-r--r--include/clang/Lex/Token.h2
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);
}