summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-07-13 21:08:08 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-07-13 21:08:08 +0000
commit226399ce18cdcbb1e83af7c5e644bdabb9d4f2f8 (patch)
tree255311d521a4577e0a01dbd94f940d9f7cffb0f9 /lib/CodeGen/CodeGenFunction.cpp
parentdc80978ed59863c4d4eb251c109d312de0532611 (diff)
downloadclang-226399ce18cdcbb1e83af7c5e644bdabb9d4f2f8.tar.gz
clang-226399ce18cdcbb1e83af7c5e644bdabb9d4f2f8.tar.bz2
clang-226399ce18cdcbb1e83af7c5e644bdabb9d4f2f8.tar.xz
Correctly classify pack expansions as NON_CANONICAL_UNLESS_DEPENDENT
Test coverage for non-dependent pack expansions doesn't demonstrate a failure prior to this patch (a follow-up commit improving debug info will cover this commit specifically) but covers a related hole in our test coverage. Reviewed by Richard Smith & Eli Friedman. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index bea13d4269..51b86f77e5 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -1344,6 +1344,7 @@ void CodeGenFunction::EmitVariablyModifiedType(QualType type) {
case Type::UnaryTransform:
case Type::Attributed:
case Type::SubstTemplateTypeParm:
+ case Type::PackExpansion:
// Keep walking after single level desugaring.
type = type.getSingleStepDesugaredType(getContext());
break;