diff options
author | Richard Trieu <rtrieu@google.com> | 2017-06-30 22:40:33 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2017-06-30 22:40:33 +0000 |
commit | 5739844a09581298d1108c9aa91f2d74cd4962e5 (patch) | |
tree | bb6b540900294ea6af6334e1826e10be00a2dfda /lib/AST | |
parent | 7d6afdff43ab27efe4d841d6a235b732293b79cb (diff) |
[ODRHash] Support Type TemplateArgument
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/ODRHash.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ODRHash.cpp b/lib/AST/ODRHash.cpp index 5c8d151e08..0e44a12257 100644 --- a/lib/AST/ODRHash.cpp +++ b/lib/AST/ODRHash.cpp @@ -146,7 +146,10 @@ void ODRHash::AddTemplateArgument(TemplateArgument TA) { switch (Kind) { case TemplateArgument::Null: + llvm_unreachable("Expected valid TemplateArgument"); case TemplateArgument::Type: + AddQualType(TA.getAsType()); + break; case TemplateArgument::Declaration: case TemplateArgument::NullPtr: case TemplateArgument::Integral: |