Skip to content

Commit ab93cee

Browse files
authored
Merge pull request #3348 from tautschnig/vs-shadow-1
Do not shadow "code" local variable [blocks: #2310]
2 parents 0021562 + ba1d55a commit ab93cee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/analyses/reaching_definitions.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ void rd_range_domaint::transform_function_call(
222222
else
223223
{
224224
// handle return values of undefined functions
225-
const code_function_callt &code=to_code_function_call(from->code);
226-
227-
if(code.lhs().is_not_nil())
225+
if(to_code_function_call(from->code).lhs().is_not_nil())
228226
transform_assign(ns, from, from, rd);
229227
}
230228
}

0 commit comments

Comments
 (0)