mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Fix a bug that Chris asserts emphatically is a bug. The changed clause
would always return false because the Type of a type value is always Type::TypeTY and can never be a floating point type. llvm-svn: 13902
This commit is contained in:
parent
4fa0a6a7c1
commit
d98738fe4d
@ -539,7 +539,7 @@ Constant *llvm::ConstantFoldCastInstruction(const Constant *V,
|
||||
// Try to not produce a cast of a cast, which is almost always redundant.
|
||||
if (!Op->getType()->isFloatingPoint() &&
|
||||
!CE->getType()->isFloatingPoint() &&
|
||||
!DestTy->getType()->isFloatingPoint()) {
|
||||
!DestTy->isFloatingPoint()) {
|
||||
unsigned S1 = getSize(Op->getType()), S2 = getSize(CE->getType());
|
||||
unsigned S3 = getSize(DestTy);
|
||||
if (Op->getType() == DestTy && S3 >= S2)
|
||||
|
Loading…
Reference in New Issue
Block a user