[ODRHash] Fix hashing for friend functions.

When hashing a templated function, use the hash of the function it was
instantiated from.

llvm-svn: 325742
diff --git a/clang/test/Modules/Inputs/odr_hash-Friend/module.modulemap b/clang/test/Modules/Inputs/odr_hash-Friend/module.modulemap
index 28e1832e..449d51e 100644
--- a/clang/test/Modules/Inputs/odr_hash-Friend/module.modulemap
+++ b/clang/test/Modules/Inputs/odr_hash-Friend/module.modulemap
@@ -13,3 +13,11 @@
 module Module3 {
   header "M3.h"
 }
+
+module Good {
+  header "Good.h"
+}
+
+module Bad {
+  header "Bad.h"
+}