[infer][biabduction] clear the error log when creating a specialized clone of a method

Summary: This removes cases of duplicated warnings when the dynamic dispatch handling specializes a method Infer already reported on.

Reviewed By: sblackshear

Differential Revision: D6060337

fbshipit-source-id: dbefeca
master
Jeremy Dubreil 7 years ago committed by Facebook Github Bot
parent 0e7542a18f
commit 1a3942a903

@ -417,7 +417,8 @@ let specialize_types callee_pdesc resolved_pname args =
~init:([], Mangled.Map.empty) callee_attributes.formals args ~init:([], Mangled.Map.empty) callee_attributes.formals args
in in
let resolved_attributes = let resolved_attributes =
{callee_attributes with formals= List.rev resolved_params; proc_name= resolved_pname} { callee_attributes with
formals= List.rev resolved_params; proc_name= resolved_pname; err_log= Errlog.empty () }
in in
Attributes.store resolved_attributes ; Attributes.store resolved_attributes ;
let resolved_pdesc = let resolved_pdesc =

Loading…
Cancel
Save