r286541 - Revert "Speculative fix for va_list/nullability test on Hexagon and PPC."

Jordan Rose via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 10 17:29:15 PST 2016


Author: jrose
Date: Thu Nov 10 19:29:15 2016
New Revision: 286541

URL: http://llvm.org/viewvc/llvm-project?rev=286541&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=286541&r1=286540&r2=286541&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Thu Nov 10 19:29:15 2016
@@ -3921,10 +3921,6 @@ static TypeSourceInfo *GetFullTypeForDec
     }
 
     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;




More information about the cfe-commits mailing list