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
This commit is contained in:
Douglas Gregor 2010-02-24 23:02:30 +00:00
parent 1f7fe2c7f7
commit 90ad922a73
1 changed files with 6 additions and 1 deletions

View File

@ -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);