diff options
author | John McCall <rjmccall@apple.com> | 2013-03-04 07:34:02 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-03-04 07:34:02 +0000 |
commit | 48f904271effd381ec3c1ae33b97d1ec7d95860a (patch) | |
tree | 2ffae6e7b7d7bfcf22f6570ca1b826c4822133e3 /include/clang/Sema/Sema.h | |
parent | 0353a7b2df9dc36784f9ec354c266f9c603053e1 (diff) |
Centralize and refine the __unknown_anytype argument rules
and be sure to apply them whether or not the debugger gave
us a method declaration.
rdar://12565338
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Sema.h')
-rw-r--r-- | include/clang/Sema/Sema.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index df746928c8..397bd14d8a 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -6911,12 +6911,10 @@ public: /// given type. ExprResult forceUnknownAnyToType(Expr *E, QualType ToType); - /// \brief Handle an expression that's being passed to an + /// \brief Type-check an expression that's being passed to an /// __unknown_anytype parameter. - /// - /// \return the effective parameter type to use, or null if the - /// argument is invalid. - QualType checkUnknownAnyArg(Expr *&result); + ExprResult checkUnknownAnyArg(SourceLocation callLoc, + Expr *result, QualType ¶mType); // CheckVectorCast - check type constraints for vectors. // Since vectors are an extension, there are no C standard reference for this. |