Skip to content

Commit 87551a8

Browse files
committed
Add name to dummy expression
also use pointer-type builder instead of constructor.
1 parent 39ae09d commit 87551a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory-analyzer/analyze_symbol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ exprt gdb_value_extractort::get_char_pointer_value(
151151
string_constantt init(string);
152152
CHECK_RETURN(to_array_type(init.type()).is_complete());
153153

154-
symbol_exprt dummy(pointer_typet(init.type(), config.ansi_c.pointer_width));
154+
symbol_exprt dummy("tmp", pointer_type(init.type()));
155155
code_blockt assignments;
156156

157157
const symbol_exprt new_symbol =

0 commit comments

Comments
 (0)