diff options
author | John McCall <rjmccall@apple.com> | 2010-11-16 02:32:08 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-16 02:32:08 +0000 |
commit | 1c23e91ef66688d20868b6bab3b5589a119eb603 (patch) | |
tree | 79ee479cc88f3c6a1947845f0442b688593683fd /lib/Sema/SemaDeclAttr.cpp | |
parent | ea834df7cd07d67a77e7dd6e48e8db27464be2fd (diff) |
Kill off the remaining places which generate CK_Unknown casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index a1c07434ec..3c3e3ae377 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1375,8 +1375,7 @@ static void HandleCleanupAttr(Decl *d, const AttributeList &Attr, Sema &S) { // If this ever proves to be a problem it should be easy to fix. QualType Ty = S.Context.getPointerType(VD->getType()); QualType ParamTy = FD->getParamDecl(0)->getType(); - CastKind K; - if (S.CheckAssignmentConstraints(ParamTy, Ty, K) != Sema::Compatible) { + if (S.CheckAssignmentConstraints(ParamTy, Ty) != Sema::Compatible) { S.Diag(Attr.getLoc(), diag::err_attribute_cleanup_func_arg_incompatible_type) << Attr.getParameterName() << ParamTy << Ty; |