Make the dumper safe against null declaration names.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120421 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DumpXML.cpp b/lib/AST/DumpXML.cpp
index ea9f1cc..5f1a396 100644
--- a/lib/AST/DumpXML.cpp
+++ b/lib/AST/DumpXML.cpp
@@ -255,6 +255,9 @@
   }
 
   void setName(DeclarationName Name) {
+    if (!Name)
+      return set("name", "");
+
     // Common case.
     if (Name.isIdentifier())
       return set("name", Name.getAsIdentifierInfo()->getName());