summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIEHash.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-21 23:06:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-21 23:06:19 +0000
commit449f036a8141b9032ff310ecbe0ab4433c5c307b (patch)
treed4d402affa29fbd5dc4735e097ce02e0900b76d0 /lib/CodeGen/AsmPrinter/DIEHash.cpp
parentf1545a219744c1ae66137e64d1c456cd8e924eb7 (diff)
downloadllvm-449f036a8141b9032ff310ecbe0ab4433c5c307b.tar.gz
llvm-449f036a8141b9032ff310ecbe0ab4433c5c307b.tar.bz2
llvm-449f036a8141b9032ff310ecbe0ab4433c5c307b.tar.xz
DWARF Type Hashing: Include reference and rvalue reference type in the declarable summary hashing path
More support for 7.25 Part 5. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIEHash.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DIEHash.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 0dacd7384e..64a8fd50ed 100644
--- a/lib/CodeGen/AsmPrinter/DIEHash.cpp
+++ b/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -201,7 +201,9 @@ void DIEHash::hashAttribute(AttrEntry Attr, dwarf::Tag Tag) {
// Step 5
// If the tag in Step 3 is one of ...
- if (Tag == dwarf::DW_TAG_pointer_type) {
+ if (Tag == dwarf::DW_TAG_pointer_type ||
+ Tag == dwarf::DW_TAG_reference_type ||
+ Tag == dwarf::DW_TAG_rvalue_reference_type) {
// ... and the referenced type (via the DW_AT_type or DW_AT_friend
// attribute) ...
assert(Desc->getAttribute() == dwarf::DW_AT_type ||