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.
2 parents 7e0430b + 2743483 commit 21eb53bCopy full SHA for 21eb53b
src/types/int_type.rs
@@ -117,7 +117,7 @@ impl<'ctx> IntType<'ctx> {
117
/// let i8_val = i8_type.const_int_from_string("ABCD", StringRadix::Binary);
118
/// assert!(i8_val.is_none());
119
/// ```
120
- pub fn const_int_from_string(&self, slice: &str, radix: StringRadix) -> Option<IntValue> {
+ pub fn const_int_from_string(&self, slice: &str, radix: StringRadix) -> Option<IntValue<'ctx>> {
121
if !radix.to_regex().is_match(slice) {
122
return None
123
}
0 commit comments