diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-07 22:21:05 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-07 22:21:05 +0000 |
commit | f10e414e4eacf5d590121f15a53175a3022a9beb (patch) | |
tree | 5381be310c1a29c898b73e0b830821bd8e7d7afe /clang/lib/Sema/SemaChecking.cpp | |
parent | c7e8e795fa50719d64dc64b9bc1dc4673ed58557 (diff) | |
download | bcm5719-llvm-f10e414e4eacf5d590121f15a53175a3022a9beb.tar.gz bcm5719-llvm-f10e414e4eacf5d590121f15a53175a3022a9beb.zip |
More CastKind work.
llvm-svn: 78415
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 949c33dfff8..b35287aa31e 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -383,7 +383,8 @@ 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. - if (CheckCastTypes(Arg->getSourceRange(), ValType, Arg)) + CastExpr::CastKind Kind = CastExpr::CK_Unknown; + if (CheckCastTypes(Arg->getSourceRange(), ValType, Arg, Kind)) return true; // Okay, we have something that *can* be converted to the right type. Check @@ -392,8 +393,7 @@ bool Sema::SemaBuiltinAtomicOverloaded(CallExpr *TheCall) { // pass in 42. The 42 gets converted to char. This is even more strange // for things like 45.123 -> char, etc. // FIXME: Do this check. - ImpCastExprToType(Arg, ValType, CastExpr::CK_Unknown, - /*isLvalue=*/false); + ImpCastExprToType(Arg, ValType, Kind, /*isLvalue=*/false); TheCall->setArg(i+1, Arg); } |