Skip to content
Snippets Groups Projects
Commit 62a8bd6d authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[kernel] when inlining function, copy of formals become caller's locals

parent 06f37f3b
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,7 @@ let inline_call loc caller callee return args =
self#set_current_kf caller;
Cil.DoChildrenPost
(fun fd ->
List.iter (fun v -> v.vformal <- false) fd.sformals;
caller_fd.slocals <-
caller_fd.slocals @ fd.sformals @ fd.slocals;
let add_init vi arg =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment