From: Anders Carlsson Date: Tue, 27 Nov 2007 07:16:40 +0000 (+0000) Subject: Add comment to CheckVectorCast.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=584b2471cc86c9a850cd6a62510eaa65672d20f3;p=clang Add comment to CheckVectorCast.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44356 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/Sema.h b/Sema/Sema.h index 21a7cdcbfc..1b232df356 100644 --- a/Sema/Sema.h +++ b/Sema/Sema.h @@ -696,6 +696,9 @@ private: QualType ElementType, bool isStatic, int &nInitializers, bool &hadError); + // CheckVectorCast - check type constraints for vectors. + // 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);