projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f154f1
)
OpenCL: Fix vector conditional operator CodeGen for the case where
author
Peter Collingbourne
<peter@pcc.me.uk>
Tue, 29 May 2012 00:35:18 +0000
(
00:35
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Tue, 29 May 2012 00:35:18 +0000
(
00:35
+0000)
the operands are vectors of doubles.
llvm-svn: 157596
clang/lib/CodeGen/CGExprScalar.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGExprScalar.cpp
b/clang/lib/CodeGen/CGExprScalar.cpp
index
bce910c
..
f8b4c08
100644
(file)
--- 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()->isFloat
ingPoint
Ty()) {
RHSTmp = Builder.CreateBitCast(RHS, tmp2->getType());
LHSTmp = Builder.CreateBitCast(LHS, tmp->getType());
wasCast = true;