[flang-commits] [flang] [Flang] KIND De-Templatization (PR #206907)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri Aug 14 04:34:36 PDT 2026
================
@@ -2206,10 +2307,10 @@ Expr<T> FoldOperation(FoldingContext &context, Divide<T> &&x) {
if constexpr (T::category == TypeCategory::Real) {
if (folded->second.IsZero() && context.moduleFileName().has_value()) {
using IntType = typename T::Scalar::Word;
- auto intNumerator{folded->first.template ToInteger<IntType>()};
+ auto intNumerator{folded->first.ToInteger()};
isCanonicalNaNOrInf = intNumerator.flags == RealFlags{} &&
- intNumerator.value >= IntType{-1} &&
- intNumerator.value <= IntType{1};
+ intNumerator.value >= IntType{-1, 16} &&
+ intNumerator.value <= IntType{1, 16};
----------------
tblah wrote:
Understood. This isn't a must-have if it makes the PR far too verbose
https://github.com/llvm/llvm-project/pull/206907
More information about the flang-commits
mailing list