Skip to content

Commit 1112189

Browse files
committed
Adjust type
1 parent 772f855 commit 1112189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/ExpandFp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ class FRemExpander {
8585
if (Ty->is16bitFPTy())
8686
return FRemExpander{B, Ty, 11, 0x8000, B.getFloatTy(), B.getInt16Ty()};
8787
if (Ty->isFloatTy() || Ty->isHalfTy())
88-
return FRemExpander{B, Ty, 12, 0x80000000L, Ty, B.getInt32Ty()};
88+
return FRemExpander{B, Ty, 12, 0x80000000UL, Ty, B.getInt32Ty()};
8989
if (Ty->isDoubleTy())
90-
return FRemExpander{B, Ty, 26, 0x8000000000000000L, Ty, B.getInt64Ty()};
90+
return FRemExpander{B, Ty, 26, 0x8000000000000000UL, Ty, B.getInt64Ty()};
9191

9292
return std::nullopt;
9393
}

0 commit comments

Comments
 (0)