[infer][backend] Deallocate local variables before formal parameters

Reviewed By: jeremydubreil

Differential Revision: D5344645

fbshipit-source-id: eb14ac7
master
Jia Chen 8 years ago committed by Facebook Github Bot
parent a98f5ab244
commit afc8c1b762

@ -190,8 +190,8 @@ let remove_locals_ret tenv (curr_f: Procdesc.t) p =>
/** Remove locals and formal parameters from the prop.
Return the list of stack variables whose address was still present after deallocation. */
let remove_locals_formals tenv (curr_f: Procdesc.t) p => {
let (pvars1, p1) = remove_formals tenv curr_f p;
let (pvars2, p2) = remove_locals tenv curr_f p1;
let (pvars1, p1) = remove_locals tenv curr_f p;
let (pvars2, p2) = remove_formals tenv curr_f p1;
(pvars1 @ pvars2, p2)
};

Loading…
Cancel
Save