diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-06-08 18:19:52 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-06-08 18:19:52 +0000 |
commit | 17aeeeb3117fa97c0587a1dadd36010e5fb470ca (patch) | |
tree | 6fbfb8e87f2c4728ca8735cb3d282085853b8116 /clang/lib/AST/ASTContext.cpp | |
parent | 4c124ffd5b05cf6a5c77a966a5e0b0df91274c1b (diff) | |
download | bcm5719-llvm-17aeeeb3117fa97c0587a1dadd36010e5fb470ca.tar.gz bcm5719-llvm-17aeeeb3117fa97c0587a1dadd36010e5fb470ca.zip |
Revert "[Sema] Make FunctionType's TSI use unadjusted argument types"
This reverts commit r183614.
It broke test/Sema/block-printf-attribute-1.c on non-Windows platforms,
and the fix is not trivial.
llvm-svn: 183616
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 384164167db..44ff94e3584 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -4142,21 +4142,6 @@ const ArrayType *ASTContext::getAsArrayType(QualType T) const { } QualType ASTContext::getAdjustedParameterType(QualType T) const { - // In ARC, infer a lifetime qualifier for appropriate parameter types. - if (getLangOpts().ObjCAutoRefCount && - T.getObjCLifetime() == Qualifiers::OCL_None && - T->isObjCLifetimeType()) { - // Special cases for arrays: - // - if it's const, use __unsafe_unretained - // - otherwise, it's an error - Qualifiers::ObjCLifetime lifetime; - if (T->isArrayType()) - lifetime = Qualifiers::OCL_ExplicitNone; - else - lifetime = T->getObjCARCImplicitLifetime(); - T = getLifetimeQualifiedType(T, lifetime); - } - // C99 6.7.5.3p7: // A declaration of a parameter as "array of type" shall be // adjusted to "qualified pointer to type", where the type |