[Mlir-commits] [mlir] bf7a826 - [Presburger] Fraction: resolve ambiguous overload in some cases

Arjun P llvmlistbot at llvm.org
Wed Oct 18 09:20:17 PDT 2023


Author: Arjun P
Date: 2023-10-18T17:18:42+01:00
New Revision: bf7a826e7135b8e1008df1d9e4e6c5f898a8da80

URL: https://github.com/llvm/llvm-project/commit/bf7a826e7135b8e1008df1d9e4e6c5f898a8da80
DIFF: https://github.com/llvm/llvm-project/commit/bf7a826e7135b8e1008df1d9e4e6c5f898a8da80.diff

LOG: [Presburger] Fraction: resolve ambiguous overload in some cases

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/Presburger/Fraction.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/Presburger/Fraction.h b/mlir/include/mlir/Analysis/Presburger/Fraction.h
index a410f528e1f8001..afcbed84c66bc3c 100644
--- a/mlir/include/mlir/Analysis/Presburger/Fraction.h
+++ b/mlir/include/mlir/Analysis/Presburger/Fraction.h
@@ -38,7 +38,7 @@ struct Fraction {
     }
   }
   /// Overloads for passing literals.
-  Fraction(const MPInt &num, int64_t den = 1) : Fraction(num, MPInt(den)) {}
+  Fraction(const MPInt &num, int64_t den) : Fraction(num, MPInt(den)) {}
   Fraction(int64_t num, const MPInt &den = MPInt(1))
       : Fraction(MPInt(num), den) {}
   Fraction(int64_t num, int64_t den) : Fraction(MPInt(num), MPInt(den)) {}


        


More information about the Mlir-commits mailing list