diff options
author | Faisal Vali <faisalv@yahoo.com> | 2018-01-01 02:49:17 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2018-01-01 02:49:17 +0000 |
commit | c535adcfc5dd5773366329cb86af38931393df5a (patch) | |
tree | 30d5b0d50f9e870b93edddb76d995fbd2a9b0c82 /clang/lib/Sema/SemaTemplateVariadic.cpp | |
parent | 4a85f14c19670cd6f8851324749042b04ba51ed2 (diff) | |
download | bcm5719-llvm-c535adcfc5dd5773366329cb86af38931393df5a.tar.gz bcm5719-llvm-c535adcfc5dd5773366329cb86af38931393df5a.zip |
Revert r321614 and r321615
- the enum changes to TypeSpecifierType are breaking some tests - and will require a more careful integration.
Sorry about rushing these changes - thought I could sneak them in prior to heading out for new years ;)
llvm-svn: 321616
Diffstat (limited to 'clang/lib/Sema/SemaTemplateVariadic.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateVariadic.cpp | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/clang/lib/Sema/SemaTemplateVariadic.cpp b/clang/lib/Sema/SemaTemplateVariadic.cpp index 7acdad5572f..d81837dad50 100644 --- a/clang/lib/Sema/SemaTemplateVariadic.cpp +++ b/clang/lib/Sema/SemaTemplateVariadic.cpp @@ -791,53 +791,52 @@ Optional<unsigned> Sema::getNumArgumentsInExpansion(QualType T, bool Sema::containsUnexpandedParameterPacks(Declarator &D) { const DeclSpec &DS = D.getDeclSpec(); switch (DS.getTypeSpecType()) { - case TypeSpecifierType::TST_typename: - case TypeSpecifierType::TST_typeofType: - case TypeSpecifierType::TST_underlyingType: - case TypeSpecifierType::TST_atomic: { + case TST_typename: + case TST_typeofType: + case TST_underlyingType: + case TST_atomic: { QualType T = DS.getRepAsType().get(); if (!T.isNull() && T->containsUnexpandedParameterPack()) return true; break; } - case TypeSpecifierType::TST_typeofExpr: - case TypeSpecifierType::TST_decltype: + case TST_typeofExpr: + case TST_decltype: if (DS.getRepAsExpr() && DS.getRepAsExpr()->containsUnexpandedParameterPack()) return true; break; - case TypeSpecifierType::TST_unspecified: - case TypeSpecifierType::TST_void: - case TypeSpecifierType::TST_char: - case TypeSpecifierType::TST_wchar: - case TypeSpecifierType::TST_char16: - case TypeSpecifierType::TST_char32: - case TypeSpecifierType::TST_int: - case TypeSpecifierType::TST_int128: - case TypeSpecifierType::TST_half: - case TypeSpecifierType::TST_float: - case TypeSpecifierType::TST_double: - case TypeSpecifierType::TST_Float16: - case TypeSpecifierType::TST_float128: - case TypeSpecifierType::TST_bool: - case TypeSpecifierType::TST_decimal32: - case TypeSpecifierType::TST_decimal64: - case TypeSpecifierType::TST_decimal128: - case TypeSpecifierType::TST_enum: - case TypeSpecifierType::TST_union: - case TypeSpecifierType::TST_struct: - case TypeSpecifierType::TST_interface: - case TypeSpecifierType::TST_class: - case TypeSpecifierType::TST_auto: - case TypeSpecifierType::TST_auto_type: - case TypeSpecifierType::TST_decltype_auto: -#define GENERIC_IMAGE_TYPE(ImgType, Id) \ - case TypeSpecifierType::TST_##ImgType##_t: + case TST_unspecified: + case TST_void: + case TST_char: + case TST_wchar: + case TST_char16: + case TST_char32: + case TST_int: + case TST_int128: + case TST_half: + case TST_float: + case TST_double: + case TST_Float16: + case TST_float128: + case TST_bool: + case TST_decimal32: + case TST_decimal64: + case TST_decimal128: + case TST_enum: + case TST_union: + case TST_struct: + case TST_interface: + case TST_class: + case TST_auto: + case TST_auto_type: + case TST_decltype_auto: +#define GENERIC_IMAGE_TYPE(ImgType, Id) case TST_##ImgType##_t: #include "clang/Basic/OpenCLImageTypes.def" - case TypeSpecifierType::TST_unknown_anytype: - case TypeSpecifierType::TST_error: + case TST_unknown_anytype: + case TST_error: break; } |