diff options
author | Tanya Lattner <tonic@nondot.org> | 2013-04-03 23:55:58 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2013-04-03 23:55:58 +0000 |
commit | daa74b93c97fec32016a8951b84b96505e0a08ad (patch) | |
tree | 664a971173a3b042b7b81eccf1d25b6623c7b60b | |
parent | 21a4ed3227f5a1fea665ac5413c7de319a268518 (diff) | |
download | bcm5719-llvm-daa74b93c97fec32016a8951b84b96505e0a08ad.tar.gz bcm5719-llvm-daa74b93c97fec32016a8951b84b96505e0a08ad.zip |
Update OpenCL comments to mention spec section and version.
llvm-svn: 178716
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index bcf5b78c342..76330f5cdbd 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -4915,7 +4915,7 @@ static bool checkCondition(Sema &S, Expr *Cond) { // C99 6.5.15p2 if (CondTy->isScalarType()) return false; - // OpenCL: Sec 6.3.i says the condition is allowed to be a vector or scalar. + // OpenCL v1.1 s6.3.i says the condition is allowed to be a vector or scalar. if (S.getLangOpts().OpenCL && CondTy->isVectorType()) return false; @@ -5176,9 +5176,9 @@ QualType Sema::CheckConditionalOperands(ExprResult &Cond, ExprResult &LHS, if (LHSTy->isVectorType() || RHSTy->isVectorType()) return CheckVectorOperands(LHS, RHS, QuestionLoc, /*isCompAssign*/false); - // OpenCL: If the condition is a vector, and both operands are scalar, + // If the condition is a vector, and both operands are scalar, // attempt to implicity convert them to the vector type to act like the - // built in select. + // built in select. (OpenCL v1.1 s6.3.i) if (getLangOpts().OpenCL && CondTy->isVectorType()) if (checkConditionalConvertScalarsToVectors(*this, LHS, RHS, CondTy)) return QualType(); |