diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-26 18:55:36 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-26 18:55:36 +0000 |
commit | e9f42087aabfdb6b2afc35c7e38ac65da063b409 (patch) | |
tree | 4f6aa2168e5a5470f6dd90a7ea218f3f4704e9e6 /lib/Sema/SemaChecking.cpp | |
parent | db3a0f543e9a120d37823c6f2a2f1c693b69f2a1 (diff) |
update to CXXFunctionalCastExpr to support ir-gen for
type convesions of class objects [class.conv]. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 5499e6cb4e..27f03bd98f 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -390,7 +390,9 @@ bool Sema::SemaBuiltinAtomicOverloaded(CallExpr *TheCall) { // GCC does an implicit conversion to the pointer or integer ValType. This // can fail in some cases (1i -> int**), check for this error case now. CastExpr::CastKind Kind = CastExpr::CK_Unknown; - if (CheckCastTypes(Arg->getSourceRange(), ValType, Arg, Kind)) + CXXMethodDecl *ConversionDecl = 0; + if (CheckCastTypes(Arg->getSourceRange(), ValType, Arg, Kind, + ConversionDecl)) return true; // Okay, we have something that *can* be converted to the right type. Check |