[cfe-commits] r72846 - /cfe/trunk/lib/AST/Type.cpp
Douglas Gregor
dgregor at apple.com
Wed Jun 3 22:28:56 PDT 2009
Author: dgregor
Date: Thu Jun 4 00:28:55 2009
New Revision: 72846
URL: http://llvm.org/viewvc/llvm-project?rev=72846&view=rev
Log:
Eliminate a warning
Modified:
cfe/trunk/lib/AST/Type.cpp
Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=72846&r1=72845&r2=72846&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Thu Jun 4 00:28:55 2009
@@ -1455,6 +1455,10 @@
// 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;
More information about the cfe-commits
mailing list