aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-11-27 07:16:40 +0000
committerAnders Carlsson <andersca@mac.com>2007-11-27 07:16:40 +0000
commit584b2471cc86c9a850cd6a62510eaa65672d20f3 (patch)
treeb6992856bbb7dcf8636c0331b31221232ebeab7c
parent5c6a42aeccd5134216e12408634577ce5a517505 (diff)
Add comment to CheckVectorCast.h
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44356 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/Sema.h3
1 files changed, 3 insertions, 0 deletions
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);