summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit6cc628edf4b016f136ec79dc122f9acb2cefbb85 (patch)
tree16c0021579d05d477e595d0cb90f0867639c662f /clang/lib
parent35533d11b36707e0d5e589e52a4fd7b43190f1a9 (diff)
downloadbcm5719-llvm-6cc628edf4b016f136ec79dc122f9acb2cefbb85.tar.gz
bcm5719-llvm-6cc628edf4b016f136ec79dc122f9acb2cefbb85.zip
Eliminate a warning
llvm-svn: 72846
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 1fd616a0866..e304f542263 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud