- Zero-initialize UDLData so that crashes stop
- Stop complaining that we can't emit them (we most certainly can)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112467
91177308-0d34-0410-b5e6-
96231b3b80d8
/// makeUserDefinedLiteral - Set this token to be a user-defined literal
void makeUserDefinedLiteral(llvm::BumpPtrAllocator &Alloc) {
- PtrData = new (Alloc.Allocate(sizeof(UDLData), 4)) UDLData;
+ PtrData = new (Alloc.Allocate(sizeof(UDLData), 4)) UDLData();
setFlag(UserDefinedLiteral);
}
return CGF.EmitCallExpr(E).getScalarVal();
}
+ Value *VisitUDLiteralExpr(const UDLiteralExpr *E) {
+ return VisitCallExpr(E);
+ }
Value *VisitStmtExpr(const StmtExpr *E);