diff options
author | Richard Trieu <rtrieu@google.com> | 2017-06-09 20:11:51 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2017-06-09 20:11:51 +0000 |
commit | f21b80387644c47d2cf3518fed934496f6b55524 (patch) | |
tree | c70a1a2f4ced482ce47e50140fe1853e8e25c567 /clang/lib/AST/StmtProfile.cpp | |
parent | 29e23f3ccf63bba92fd6e6fccde0f19b02dda790 (diff) | |
download | bcm5719-llvm-f21b80387644c47d2cf3518fed934496f6b55524.tar.gz bcm5719-llvm-f21b80387644c47d2cf3518fed934496f6b55524.zip |
[ODRHash] Skip inline namespaces when hashing.
Speculatively try to fix the underlying issue from r304592, of underlying types
being confused when inline namespaces are used.
llvm-svn: 305104
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index f1fbe2806b5..99a25f34252 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -186,10 +186,7 @@ namespace { Hash.AddTemplateName(Name); } void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override { - ID.AddBoolean(NNS); - if (NNS) { - Hash.AddNestedNameSpecifier(NNS); - } + Hash.AddNestedNameSpecifier(NNS); } }; } |