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:
parent
1f7fe2c7f7
commit
90ad922a73
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue