[infer][java] translate the unsingned shift operator as standard shift operator

Summary: This should not affect the analysis results so there is no need to raise an exception here. We can always add this unsigned shift operator to SIL if we want the analysis to take them into account

Reviewed By: sblackshear

Differential Revision: D5703792

fbshipit-source-id: 739891f
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 1d8d6e3ceb
commit 04d3142f6b

@ -190,7 +190,7 @@ let get_binop binop =
| JBir.IXor
-> Binop.BXor
| JBir.IUshr
-> raise (Frontend_error "Unsigned right shift operator")
-> Binop.Shiftrt
| JBir.LShl
-> Binop.Shiftlt
| JBir.LShr
@ -202,9 +202,9 @@ let get_binop binop =
| JBir.LXor
-> Binop.BXor
| JBir.LUshr
-> raise (Frontend_error "Unsigned right shift operator")
-> Binop.Shiftrt
| JBir.CMP _
-> raise (Frontend_error "Unsigned right shift operator")
-> raise (Frontend_error "Comparison operators")
| JBir.ArrayLoad _
-> raise (Frontend_error "Array load operator")

Loading…
Cancel
Save