aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DIEHash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIEHash.cpp')
-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 9a26e72..8409a7f 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);