We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c1f9c commit 5705c30Copy full SHA for 5705c30
Sources/LLVM/IntType.swift
@@ -42,7 +42,7 @@ public struct IntType: IRType {
42
/// type's bit width. Defaults to `false`.
43
public func constant<IntTy: UnsignedInteger>(_ value: IntTy, signExtend: Bool = false) -> Constant<Unsigned> {
44
return Constant(llvm: LLVMConstInt(asLLVM(),
45
- UInt64(bitPattern: value.toIntMax()),
+ value.toUIntMax(),
46
signExtend.llvm))
47
}
48
0 commit comments