diff options
author | John McCall <rjmccall@apple.com> | 2010-11-15 09:13:47 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-15 09:13:47 +0000 |
commit | daa8e4e888758d55a7a759dd4a91b83921cef222 (patch) | |
tree | da0538d1a354cd6a6fabcd34d8015c90b6b28754 /lib/Sema/SemaDeclAttr.cpp | |
parent | 5ede807c1194c3a44c0adee83eca24efd626e5bb (diff) |
Assorted work leading towards the elimination of CK_Unknown.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 8b7863107b..e07b1ac471 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1375,7 +1375,8 @@ 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(); - if (S.CheckAssignmentConstraints(ParamTy, Ty) != Sema::Compatible) { + CastKind K; + if (S.CheckAssignmentConstraints(ParamTy, Ty, K) != Sema::Compatible) { S.Diag(Attr.getLoc(), diag::err_attribute_cleanup_func_arg_incompatible_type) << Attr.getParameterName() << ParamTy << Ty; |