Skip to content

Commit 8a6ff17

Browse files
author
martin
committed
Improve the error messages given by the uninitialized checks
1 parent 8c47a4f commit 8a6ff17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-instrument/uninitialized.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void uninitializedt::add_assertions(
158158
symbol_exprt(new_identifier, bool_typet()),
159159
instruction.source_location());
160160
assertion.source_location_nonconst().set_comment(
161-
"use of uninitialized local variable");
161+
"use of uninitialized local variable " + id2string(identifier));
162162
assertion.source_location_nonconst().set_property_class(
163163
"uninitialized local");
164164

0 commit comments

Comments
 (0)