Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.121 -> 1.122 --- Log message: For PR970: http://llvm.org/PR970 : Clean up handling of isFloatingPoint() and dealing with PackedType. Patch by Gordon Henriksen! --- Diffs of the changes: (+2 -2) ExprTypeConvert.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/ExprTypeConvert.cpp diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.121 llvm/lib/Transforms/ExprTypeConvert.cpp:1.122 --- llvm/lib/Transforms/ExprTypeConvert.cpp:1.121 Sun Jan 14 20:27:26 2007 +++ llvm/lib/Transforms/ExprTypeConvert.cpp Sat Jan 20 18:29:25 2007 @@ -576,8 +576,8 @@ // 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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits