We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b04bb82 commit e3232c7Copy full SHA for e3232c7
src/util/c_types.cpp
@@ -250,9 +250,10 @@ reference_typet reference_type(const typet &subtype)
250
return reference_typet(subtype, config.ansi_c.pointer_width);
251
}
252
253
-typet void_type()
+empty_typet void_type()
254
{
255
- return empty_typet();
+ static const auto result = empty_typet();
256
+ return result;
257
258
259
std::string c_type_as_string(const irep_idt &c_type)
src/util/c_types.h
@@ -36,7 +36,7 @@ unsignedbv_typet size_type();
36
signedbv_typet signed_size_type();
37
signedbv_typet pointer_diff_type();
38
pointer_typet pointer_type(const typet &);
39
-typet void_type();
+empty_typet void_type();
40
41
// This is for Java and C++
42
reference_typet reference_type(const typet &);
0 commit comments