[cfe-commits] r44356 - /cfe/trunk/Sema/Sema.h
Anders Carlsson
andersca at mac.com
Mon Nov 26 23:16:40 PST 2007
Author: andersca
Date: Tue Nov 27 01:16:40 2007
New Revision: 44356
URL: http://llvm.org/viewvc/llvm-project?rev=44356&view=rev
Log:
Add comment to CheckVectorCast.h
Modified:
cfe/trunk/Sema/Sema.h
Modified: cfe/trunk/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/Sema.h?rev=44356&r1=44355&r2=44356&view=diff
==============================================================================
--- cfe/trunk/Sema/Sema.h (original)
+++ cfe/trunk/Sema/Sema.h Tue Nov 27 01:16:40 2007
@@ -696,6 +696,9 @@
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);
More information about the cfe-commits
mailing list