From: Jordan Rose Date: Fri, 11 Nov 2016 01:29:15 +0000 (+0000) Subject: Revert "Speculative fix for va_list/nullability test on Hexagon and PPC." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=116f2d856fe6d62f8c343028811edc9867573110;p=clang Revert "Speculative fix for va_list/nullability test on Hexagon and PPC." 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 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index d43d96544e..e98737946b 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -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()) - T = decayedTy->getOriginalType(); - auto *typedefTy = T->getAs(); if (!typedefTy) return false;