[ODRHash] Extend hash to support all Type's.

llvm-svn: 341421
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 15653c4..133ecf7 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -189,7 +189,7 @@
         // store its nullness.  Add a boolean here to match.
         ID.AddBoolean(true);
       }
-      Hash.AddDeclarationName(Name);
+      Hash.AddDeclarationName(Name, TreatAsDecl);
     }
     void VisitIdentifierInfo(IdentifierInfo *II) override {
       ID.AddBoolean(II);