]> granicus.if.org Git - clang/commitdiff
Revert "Speculative fix for va_list/nullability test on Hexagon and PPC."
authorJordan Rose <jordan_rose@apple.com>
Fri, 11 Nov 2016 01:29:15 +0000 (01:29 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 11 Nov 2016 01:29:15 +0000 (01:29 +0000)
This reverts commit r286533. At this point an array really is still an
array, but the problem is with /non-/array va_lists anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index d43d96544e9a69c5b48cbd1fed600b8bb90e020a..e98737946b7856ee75a815237940f69e93864aab 100644 (file)
@@ -3921,10 +3921,6 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
     }
 
     auto isVaList = [&S](QualType T) -> bool {
-      // Handle array va_list parameters that decayed to pointers.
-      if (auto *decayedTy = T->getAs<DecayedType>())
-        T = decayedTy->getOriginalType();
-
       auto *typedefTy = T->getAs<TypedefType>();
       if (!typedefTy)
         return false;