aboutsummaryrefslogtreecommitdiff
path: root/libcpp/line-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/line-map.c')
-rw-r--r--libcpp/line-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index a84084c..b2ebfeb 100644
--- a/libcpp/line-map.c
+++ b/libcpp/line-map.c
@@ -348,7 +348,7 @@ linemap_init (struct line_maps *set,
/* PR33916, needed to fix PR82939. */
memset (set, 0, sizeof (struct line_maps));
#else
- *set = line_maps ();
+ new (set) line_maps();
#endif
set->highest_location = RESERVED_LOCATION_COUNT - 1;
set->highest_line = RESERVED_LOCATION_COUNT - 1;