Skip to content

Commit 56ca286

Browse files
committed
fix it right
1 parent a6668aa commit 56ca286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ impl Context {
253253
/// let asm_fn = context.i64_type().fn_type(&[context.i64_type().into(), context.i64_type().into()], false);
254254
/// let asm = context.create_inline_asm(asm_fn, "syscall".to_string(), "=r,{rax},{rdi}".to_string(), true, false);
255255
/// let params = &[context.i64_type().const_int(60, false).into(), context.i64_type().const_int(1, false).into()];
256-
/// let callable_value = CallableValue.try_from(asm).unwrap();
257-
/// builder.build_call(asm, params, "exit");
256+
/// let callable_value = CallableValue::try_from(asm).unwrap();
257+
/// builder.build_call(callable_value, params, "exit");
258258
/// builder.build_return(None);
259259
#[llvm_versions(3.6..7.0)]
260260
pub fn create_inline_asm(&self, ty: FunctionType, assembly: String, constraints: String, sideeffects: bool, alignstack: bool) -> PointerValue {

0 commit comments

Comments
 (0)