From 584b2471cc86c9a850cd6a62510eaa65672d20f3 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 27 Nov 2007 07:16:40 +0000 Subject: [PATCH] Add comment to CheckVectorCast.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44356 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/Sema.h | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.1