diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-16 02:48:28 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-16 02:48:28 +0000 |
commit | 525b76b59cd335af2e16c0c1b5be1cad22745d05 (patch) | |
tree | 569e507522e00d9f1d0e0de0907bf267d70eae47 /clang/lib/Sema/Sema.h | |
parent | ef918ac840036fdf2f085d2acc7270c16585b136 (diff) | |
download | bcm5719-llvm-525b76b59cd335af2e16c0c1b5be1cad22745d05.tar.gz bcm5719-llvm-525b76b59cd335af2e16c0c1b5be1cad22745d05.zip |
Make CheckVectorCast return a CastKind. Reduce nesting of if statements in CheckCastTypes.
llvm-svn: 84242
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 9b46f77c13e..8de4bec6bd9 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -3661,7 +3661,8 @@ public: // Since vectors are an extension, there are no C standard reference for this. // We allow casting between vectors and integer datatypes of the same size. // returns true if the cast is invalid - bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty); + bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty, + CastExpr::CastKind &Kind); // CheckExtVectorCast - check type constraints for extended vectors. // Since vectors are an extension, there are no C standard reference for this. |