[cfe-commits] r97076 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Douglas Gregor
dgregor at apple.com
Wed Feb 24 15:02:30 PST 2010
Author: dgregor
Date: Wed Feb 24 17:02:30 2010
New Revision: 97076
URL: http://llvm.org/viewvc/llvm-project?rev=97076&view=rev
Log:
Make sure that we have type source information for the scope type of a
pseudo-destructor expression. Attempt #1 at fixing the MSVC buildbot.
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=97076&r1=97075&r2=97076&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Wed Feb 24 17:02:30 2010
@@ -2783,7 +2783,12 @@
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);
More information about the cfe-commits
mailing list