aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/pass/resolve_function_pointers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/pass/resolve_function_pointers.rs')
-rw-r--r--ptx/src/pass/resolve_function_pointers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptx/src/pass/resolve_function_pointers.rs b/ptx/src/pass/resolve_function_pointers.rs
index 9aaa694..eb7abb1 100644
--- a/ptx/src/pass/resolve_function_pointers.rs
+++ b/ptx/src/pass/resolve_function_pointers.rs
@@ -20,7 +20,7 @@ fn run_directive<'input>(
var @ Directive2::Variable(..) => var,
Directive2::Method(method) => {
{
- let func_decl = method.func_decl.borrow();
+ let func_decl = &method.func_decl;
match func_decl.name {
ptx_parser::MethodName::Kernel(_) => {}
ptx_parser::MethodName::Func(name) => {