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.
2 parents 2c5d717 + 2e61263 commit dbe5557Copy full SHA for dbe5557
src/ansi-c/c_typecheck_expr.cpp
@@ -1944,7 +1944,7 @@ void c_typecheck_baset::typecheck_typed_target_call(
1944
}
1945
1946
auto arg0 = expr.arguments().front();
1947
- typecheck_expr(arg0);
+
1948
if(!is_assignable(arg0) || !arg0.get_bool(ID_C_lvalue))
1949
{
1950
throw invalid_source_file_exceptiont{
@@ -1976,7 +1976,7 @@ void c_typecheck_baset::typecheck_typed_target_call(
1976
arguments.push_back(false_exprt());
1977
1978
expr.arguments().swap(arguments);
1979
- typecheck_side_effect_function_call(expr);
+ expr.type() = empty_typet();
1980
1981
1982
void c_typecheck_baset::typecheck_side_effect_function_call(
0 commit comments