summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-17 00:10:34 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-17 00:10:34 +0000
commit88a68cbbb57aa9caef60dbd2f63d908983e77465 (patch)
treea4eea1a92a66c52736b80f1cb285eeda3c333804 /lib
parentc0987082206d202c20ebe1d528c1b28a875160ac (diff)
downloadllvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.tar.gz
llvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.tar.bz2
llvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.tar.xz
DIEHash: Include the type's context in the type hash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DIEHash.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 9a26e727bd..8409a7f56c 100644
--- a/lib/CodeGen/AsmPrinter/DIEHash.cpp
+++ b/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -466,6 +466,9 @@ uint64_t DIEHash::computeCUSignature(DIE *Die) {
/// standard.
uint64_t DIEHash::computeTypeSignature(DIE *Die) {
+ if (DIE *Parent = Die->getParent())
+ addParentContext(Parent);
+
// Hash the DIE.
computeHash(Die);