diff options
author | Jordan Rose <jordan_rose@apple.com> | 2016-11-11 01:29:15 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2016-11-11 01:29:15 +0000 |
commit | 9f10af2aa2f6945a95cfc1af0ec5207e42d72dab (patch) | |
tree | faf0432519594df856dfa037bf9b7820700fb4ea /clang/lib/Sema | |
parent | 5bf012baba4edb844664958dcd0209896ef61bb2 (diff) | |
download | bcm5719-llvm-9f10af2aa2f6945a95cfc1af0ec5207e42d72dab.tar.gz bcm5719-llvm-9f10af2aa2f6945a95cfc1af0ec5207e42d72dab.zip |
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
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaType.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index d43d96544e9..e98737946b7 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/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<DecayedType>()) - T = decayedTy->getOriginalType(); - auto *typedefTy = T->getAs<TypedefType>(); if (!typedefTy) return false; |