diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-29 00:35:18 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-29 00:35:18 +0000 |
| commit | aac265cc7818840c116316c14a42fab6ba59d10a (patch) | |
| tree | e650fa58ff05950bb1e204cc41745c57902577f7 /clang/lib | |
| parent | 6f154f16cdcef9c72038564d33e331ba70cd6b49 (diff) | |
| download | bcm5719-llvm-aac265cc7818840c116316c14a42fab6ba59d10a.tar.gz bcm5719-llvm-aac265cc7818840c116316c14a42fab6ba59d10a.zip | |
OpenCL: Fix vector conditional operator CodeGen for the case where
the operands are vectors of doubles.
llvm-svn: 157596
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index bce910ce189..f8b4c0832c3 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -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; |

