mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
542e859216
commit
3ee239bd40
@ -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…
x
Reference in New Issue
Block a user