Skip to content
Snippets Groups Projects
Commit 5b5b58e7 authored by David Bühler's avatar David Bühler
Browse files

[server] Catches SizeOfError exception when calling Cil.bitsSizeOf.

parent 19e8bbcc
No related branches found
No related tags found
No related merge requests found
...@@ -766,7 +766,10 @@ let () = Information.register ...@@ -766,7 +766,10 @@ let () = Information.register
| PGlobal (GEnumTagDecl(ei,_) | GEnumTag(ei,_)) -> TEnum(ei,[]) | PGlobal (GEnumTagDecl(ei,_) | GEnumTag(ei,_)) -> TEnum(ei,[])
| _ -> raise Not_found | _ -> raise Not_found
in in
let bits = Cil.bitsSizeOf typ in let bits =
try Cil.bitsSizeOf typ
with Cil.SizeOfError _ -> raise Not_found
in
let bytes = bits / 8 in let bytes = bits / 8 in
let rbits = bits mod 8 in let rbits = bits mod 8 in
if rbits > 0 then if rbits > 0 then
......
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