Skip to content

Commit 063c957

Browse files
committed
Adjust type to fix Windows compilation
1 parent 2cc1d42 commit 063c957

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/ExpandFp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class FRemExpander {
7878
Value *One;
7979

8080
/// The sign bit for floating point values of type \p FremTy.
81-
const unsigned long Signbit;
81+
const unsigned long long Signbit;
8282

8383
public:
8484
static std::optional<FRemExpander> create(IRBuilder<> &B, Type *Ty) {
@@ -87,7 +87,7 @@ class FRemExpander {
8787
if (Ty->isFloatTy() || Ty->isHalfTy())
8888
return FRemExpander{B, Ty, 12, 0x80000000UL, Ty, B.getInt32Ty()};
8989
if (Ty->isDoubleTy())
90-
return FRemExpander{B, Ty, 26, 0x8000000000000000UL, Ty, B.getInt64Ty()};
90+
return FRemExpander{B, Ty, 26, 0x8000000000000000ULL, Ty, B.getInt64Ty()};
9191

9292
return std::nullopt;
9393
}
@@ -100,8 +100,8 @@ class FRemExpander {
100100
Value *buildFRem(Value *X, Value *Y, std::optional<SimplifyQuery> &SQ) const;
101101

102102
private:
103-
FRemExpander(IRBuilder<> &B, Type *FremTy, short Bits, unsigned long Signbit,
104-
Type *ComputeFpTy, Type *IntTy)
103+
FRemExpander(IRBuilder<> &B, Type *FremTy, short Bits,
104+
unsigned long long Signbit, Type *ComputeFpTy, Type *IntTy)
105105
: B(B), FremTy(FremTy), ComputeFpTy(ComputeFpTy), IntTy(IntTy),
106106
ExTy(B.getInt32Ty()), Bits(ConstantInt::get(ExTy, Bits)),
107107
One(ConstantInt::get(ExTy, 1)), Signbit(Signbit) {};

0 commit comments

Comments
 (0)