diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-21 00:29:26 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-21 00:29:26 +0000 |
commit | 24d6da5fedcf39891f7d8c5b031c01324b3db545 (patch) | |
tree | e7fd1eac07e11c2f15075d23f3c07a5ff48ff1cd /lib/Transforms/ExprTypeConvert.cpp | |
parent | 67f827ce5ba1296db9051892b4a8e10920053933 (diff) |
For PR970:
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 1ed804e23d..ee5549bad2 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -576,8 +576,8 @@ static bool OperandConvertibleToType(User *U, Value *V, const Type *Ty, // Can convert store if the incoming value is convertible and if the // result will preserve semantics... const Type *Op0Ty = I->getOperand(0)->getType(); - if (!(Op0Ty->isInteger() ^ ElTy->isInteger()) && - !(Op0Ty->isFloatingPoint() ^ ElTy->isFloatingPoint())) + if (Op0Ty->isInteger() == ElTy->isInteger() && + Op0Ty->isFloatingPoint() == ElTy->isFloatingPoint()) return ExpressionConvertibleToType(I->getOperand(0), ElTy, CTMap, TD); } return false; |