diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-30 01:19:48 +0000 | 
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-30 01:19:48 +0000 | 
| commit | 8eb06df5aba5fa0949b2533d474e022336319c57 (patch) | |
| tree | bd4b10cb4d5bb4c90fe80a76d6b137694d2b0297 /llvm/lib/VMCore | |
| parent | 3b4302290dc3420ea04f47b09e81657f78f4f95f (diff) | |
| download | bcm5719-llvm-8eb06df5aba5fa0949b2533d474e022336319c57.tar.gz bcm5719-llvm-8eb06df5aba5fa0949b2533d474e022336319c57.zip | |
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
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/ConstantFolding.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/VMCore/ConstantFolding.cpp b/llvm/lib/VMCore/ConstantFolding.cpp index 641ceaebc23..70984cd0a63 100644 --- a/llvm/lib/VMCore/ConstantFolding.cpp +++ b/llvm/lib/VMCore/ConstantFolding.cpp @@ -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) | 

