commit | 07969dc8aed62fcd5c5760b2ec331275479f4a80 | [log] [tgz] |
---|---|---|
author | Michael Gottesman <mgottesman@apple.com> | Wed Jun 19 21:23:18 2013 +0000 |
committer | Michael Gottesman <mgottesman@apple.com> | Wed Jun 19 21:23:18 2013 +0000 |
tree | dd98fa7223a4b857544308302963ec7b1d0b90c5 | |
parent | 63e8ba9bcf1d83422f56ae2454dbd7190c1e2a41 [diff] [blame] |
[APFloat] Converted all references to APFloat::isNormal => APFloat::isFiniteNonZero. Turns out all the references were in llvm and not in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184356 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index a2c545f..8ba101d 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp
@@ -488,7 +488,7 @@ createFSub(AddSub0, AddSub1); if (ConstantFP *CFP = dyn_cast<ConstantFP>(NewAddSub)) { const APFloat &F = CFP->getValueAPF(); - if (!F.isNormal() || F.isDenormal()) + if (!F.isFiniteNonZero() || F.isDenormal()) return 0; }