Skip to content

Commit 3e2fce5

Browse files
committed
Use emplace to avoid copy
1 parent 5b7e530 commit 3e2fce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-programs/remove_function_pointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ remove_function_pointerst::remove_function_pointerst(
106106

107107
// build type map
108108
forall_goto_functions(f_it, goto_functions)
109-
type_map[f_it->first]=f_it->second.type;
109+
type_map.emplace(f_it->first, f_it->second.type);
110110
}
111111

112112
bool remove_function_pointerst::arg_is_type_compatible(

0 commit comments

Comments
 (0)