[cfe-commits] r157596 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Peter Collingbourne
peter at pcc.me.uk
Mon May 28 17:35:18 PDT 2012
Author: pcc
Date: Mon May 28 19:35:18 2012
New Revision: 157596
URL: http://llvm.org/viewvc/llvm-project?rev=157596&view=rev
Log:
OpenCL: Fix vector conditional operator CodeGen for the case where
the operands are vectors of doubles.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=157596&r1=157595&r2=157596&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Mon May 28 19:35:18 2012
@@ -2593,7 +2593,7 @@
llvm::Value *LHSTmp = LHS;
bool wasCast = false;
llvm::VectorType *rhsVTy = cast<llvm::VectorType>(RHS->getType());
- if (rhsVTy->getElementType()->isFloatTy()) {
+ if (rhsVTy->getElementType()->isFloatingPointTy()) {
RHSTmp = Builder.CreateBitCast(RHS, tmp2->getType());
LHSTmp = Builder.CreateBitCast(LHS, tmp->getType());
wasCast = true;
More information about the cfe-commits
mailing list