Skip to content

Commit 9f10af2

Browse files
committed
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. llvm-svn: 286541
1 parent 5bf012b commit 9f10af2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3921,10 +3921,6 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
39213921
}
39223922

39233923
auto isVaList = [&S](QualType T) -> bool {
3924-
// Handle array va_list parameters that decayed to pointers.
3925-
if (auto *decayedTy = T->getAs<DecayedType>())
3926-
T = decayedTy->getOriginalType();
3927-
39283924
auto *typedefTy = T->getAs<TypedefType>();
39293925
if (!typedefTy)
39303926
return false;

0 commit comments

Comments
 (0)