diff --git a/interpreter/cling/lib/Utils/AST.cpp b/interpreter/cling/lib/Utils/AST.cpp index a67c6c899e497d458f784c82de0961d54dfb396e..1c7c635dbde145c9b116bf5fa77904d6006d92d9 100644 --- a/interpreter/cling/lib/Utils/AST.cpp +++ b/interpreter/cling/lib/Utils/AST.cpp @@ -96,7 +96,7 @@ namespace utils { ASTContext& Ctx = S->getASTContext(); if (!Ty->isPointerType()) Ty = Ctx.getPointerType(Ty); - TypeSourceInfo* TSI = Ctx.CreateTypeSourceInfo(Ty); + TypeSourceInfo* TSI = Ctx.getTrivialTypeSourceInfo(Ty, SourceLocation()); Expr* Result = Synthesize::IntegerLiteralExpr(Ctx, Ptr); Result = S->BuildCStyleCastExpr(SourceLocation(), TSI, SourceLocation(),