Index: lib/AST/Decl.cpp
===================================================================
--- lib/AST/Decl.cpp	(revision 171973)
+++ lib/AST/Decl.cpp	(working copy)
@@ -1196,7 +1196,7 @@
 SourceRange VarDecl::getSourceRange() const {
   if (const Expr *Init = getInit()) {
     SourceLocation InitEnd = Init->getLocEnd();
-    if (InitEnd.isValid())
+    if (InitEnd.isValid() && InitEnd != getLocation())
       return SourceRange(getOuterLocStart(), InitEnd);
   }
   return DeclaratorDecl::getSourceRange();
