Skip to content

Commit 40e877f

Browse files
committed
Fix merge conflict
1 parent a538906 commit 40e877f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LLVM/IntType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public struct IntType: IRType {
4242
/// type's bit width. Defaults to `false`.
4343
public func constant<IntTy: UnsignedInteger>(_ value: IntTy, signExtend: Bool = false) -> Constant<Unsigned> {
4444
return Constant(llvm: LLVMConstInt(asLLVM(),
45-
unsafeBitCast(value.toIntMax(), to: UInt64.self),
45+
UInt64(bitPattern: value.toIntMax()),
4646
signExtend.llvm))
4747
}
4848

@@ -53,7 +53,7 @@ public struct IntType: IRType {
5353
/// type's bit width. Defaults to `false`.
5454
public func constant<IntTy: SignedInteger>(_ value: IntTy, signExtend: Bool = false) -> Constant<Signed> {
5555
return Constant(llvm: LLVMConstInt(asLLVM(),
56-
unsafeBitCast(value.toIntMax(), to: UInt64.self),
56+
UInt64(bitPattern: value.toIntMax()),
5757
signExtend.llvm))
5858
}
5959

0 commit comments

Comments
 (0)