diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-04 05:28:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-04 05:28:55 +0000 |
commit | 38999462749c22d49d1e1707206aaa4997636f4c (patch) | |
tree | 2131f9fa7c461d0c17ef6eefe83304beb1711601 /lib/AST/Type.cpp | |
parent | 4d6fb501ffc0568ca5ca7266005e96a6f1273845 (diff) |
Eliminate a warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 1fd616a086..e304f54226 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1455,6 +1455,10 @@ TemplateSpecializationType::PrintTemplateArgumentList( // Print the argument into a string. std::string ArgString; switch (Args[Arg].getKind()) { + case TemplateArgument::Null: + assert(false && "Null template argument"); + break; + case TemplateArgument::Type: Args[Arg].getAsType().getAsStringInternal(ArgString, Policy); break; |