aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-04 05:28:55 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-04 05:28:55 +0000
commit38999462749c22d49d1e1707206aaa4997636f4c (patch)
tree2131f9fa7c461d0c17ef6eefe83304beb1711601 /lib/AST/Type.cpp
parent4d6fb501ffc0568ca5ca7266005e96a6f1273845 (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.cpp4
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;