Skip to content

Commit 7b03074

Browse files
committed
opX in assembler/
This improves type safety.
1 parent e4c80a5 commit 7b03074

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/assembler/remove_asm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ void remove_asmt::gcc_asm_function_call(
8585
{
8686
if(it->operands().size() == 2)
8787
{
88-
arguments.push_back(
89-
typecast_exprt(address_of_exprt(it->op1()), void_pointer));
88+
arguments.push_back(typecast_exprt(
89+
address_of_exprt(to_binary_expr(*it).op1()), void_pointer));
9090
}
9191
}
9292

@@ -95,8 +95,8 @@ void remove_asmt::gcc_asm_function_call(
9595
{
9696
if(it->operands().size() == 2)
9797
{
98-
arguments.push_back(
99-
typecast_exprt(address_of_exprt(it->op1()), void_pointer));
98+
arguments.push_back(typecast_exprt(
99+
address_of_exprt(to_binary_expr(*it).op1()), void_pointer));
100100
}
101101
}
102102

0 commit comments

Comments
 (0)