[pulse] Do not drop astates in ExitScope instruction

Reviewed By: skcho

Differential Revision: D25637249

fbshipit-source-id: e50acf5c6
master
Daiva Naudziuniene 4 years ago committed by Facebook GitHub Bot
parent 0c6eedc835
commit 47954fc428

@ -252,11 +252,11 @@ module PulseTransferFunctions = struct
call_instr ;
List.fold
~f:(fun astates (astate : Domain.t) ->
let astate =
match astate with
| ISLLatentMemoryError _ | AbortProgram _ | ExitProgram _ | LatentAbortProgram _ ->
[astate]
astate :: astates
| ContinueProgram astate ->
let astate =
dispatch_call analysis_data ret call_exp actuals location call_flags astate
|> report_on_error_list analysis_data
in
@ -336,7 +336,7 @@ module PulseTransferFunctions = struct
~f:(fun astates (astate : Domain.t) ->
match astate with
| ISLLatentMemoryError _ | AbortProgram _ | ExitProgram _ | LatentAbortProgram _ ->
[astate]
astate :: astates
| ContinueProgram astate ->
let astate =
PulseOperations.remove_vars vars location astate

Loading…
Cancel
Save