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

[rte] Do not visit variable declarations; fixes a crash.

parent 3c7139e0
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,11 @@ class annot_visitor kf flags on_alarm = object (self)
let on_alarm ~invalid a = on_alarm stmt ~invalid a in
fgen ~remove_trivial:flags.Flags.remove_trivial ~on_alarm
(* Do not visit variable declarations, as no alarm should be emitted here,
and there is no statement to emit an alarm anyway ([generate_assertion]
or [Alarms.register] would then crash). *)
method !vvdec _ = Cil.SkipChildren
method! vstmt s = match s.skind with
| UnspecifiedSequence l ->
(* UnspecifiedSequences may contain lvals for side-effects, that
......
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