forked from OSchip/llvm-project
OpenCL: Fix vector conditional operator CodeGen for the case where
the operands are vectors of doubles. llvm-svn: 157596
This commit is contained in:
parent
6f154f16cd
commit
aac265cc78
|
@ -2593,7 +2593,7 @@ VisitAbstractConditionalOperator(const AbstractConditionalOperator *E) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue