From 90ad922a739e6fb10decec951b81770e6dac8065 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 24 Feb 2010 23:02:30 +0000 Subject: [PATCH] Make sure that we have type source information for the scope type of a pseudo-destructor expression. Attempt #1 at fixing the MSVC buildbot. llvm-svn: 97076 --- clang/lib/Sema/SemaExprCXX.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 90d6a0a026a6..ef0ad6f8b1d2 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -2783,7 +2783,12 @@ Sema::OwningExprResult Sema::ActOnPseudoDestructorExpr(Scope *S, ExprArg Base, ScopeType = GetTypeFromParser(T.get(), &ScopeTypeInfo); } } - + + if (!ScopeType.isNull() && !ScopeTypeInfo) + ScopeTypeInfo = Context.getTrivialTypeSourceInfo(ScopeType, + FirstTypeName.StartLocation); + + return BuildPseudoDestructorExpr(move(Base), OpLoc, OpKind, SS, ScopeTypeInfo, CCLoc, DestructedTypeInfo, HasTrailingLParen);