]> granicus.if.org Git - clang/commitdiff
Make sure that we have type source information for the scope type of a
authorDouglas Gregor <dgregor@apple.com>
Wed, 24 Feb 2010 23:02:30 +0000 (23:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 24 Feb 2010 23:02:30 +0000 (23:02 +0000)
pseudo-destructor expression. Attempt #1 at fixing the MSVC buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97076 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index 90d6a0a026a6d99f571db2cb91a2ab563888c4b4..ef0ad6f8b1d2ac3744c420a8f66ba28d512d4fa6 100644 (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);