commit | 8a142aaa015c2cd7cf4131b78363db333234d5f8 | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Thu Oct 17 00:10:34 2013 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Thu Oct 17 00:10:34 2013 +0000 |
tree | 39b3cfeaf3f7b2422e9df33c0841c24cc5a681c1 | |
parent | 6316ca45a7db4d2bddaff16b93ffdae0fccbbdf6 [diff] [blame] |
DIEHash: Include the type's context in the type hash. llvm-svn: 192856
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp index 9a26e72..8409a7f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -466,6 +466,9 @@ /// standard. uint64_t DIEHash::computeTypeSignature(DIE *Die) { + if (DIE *Parent = Die->getParent()) + addParentContext(Parent); + // Hash the DIE. computeHash(Die);