forked from OSchip/llvm-project
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
This commit is contained in:
parent
5bf012baba
commit
9f10af2aa2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue