[PATCH] D13349: [OpenCL] Casting boolean to an integer vector in OpenCL should set all bits if boolean is true
Pekka Jääskeläinen via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 2 02:31:08 PDT 2015
pekka.jaaskelainen added a subscriber: pekka.jaaskelainen.
pekka.jaaskelainen accepted this revision.
pekka.jaaskelainen added a reviewer: pekka.jaaskelainen.
This revision is now accepted and ready to land.
================
Comment at: lib/CodeGen/CGExprScalar.cpp:820
@@ -809,3 +819,3 @@
QualType EltTy = DstType->getAs<ExtVectorType>()->getElementType();
- llvm::Value *Elt = EmitScalarConversion(Src, SrcType, EltTy, Loc);
+ llvm::Value *Elt = EmitScalarConversion(Src, SrcType, EltTy, Loc, CGF.getContext().getLangOpts().OpenCL);
----------------
Too long line here.
http://reviews.llvm.org/D13349
More information about the cfe-commits
mailing list