Debug Info: Silently accept template argument packs
We could support the GCC extension DW_TAG_GNU_template_parameter_pack if
we're feeling adventurous, at some point - but I don't think GDB's doing
anything useful with it yet anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181644 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index f236d16..dbae6e9 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1264,10 +1264,12 @@
// We could support this with the GCC extension
// DW_TAG_GNU_template_template_param
break;
+ case TemplateArgument::Pack:
+ // And this with DW_TAG_GNU_template_parameter_pack
+ break;
// these next 4 should never occur
case TemplateArgument::Expression:
case TemplateArgument::TemplateExpansion:
- case TemplateArgument::Pack:
case TemplateArgument::Null:
llvm_unreachable(
"These argument types shouldn't exist in concrete types");