From 116f2d856fe6d62f8c343028811edc9867573110 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 11 Nov 2016 01:29:15 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaType.cpp | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.40.0