Fix XRef::copy when we have modified objects

7 jobs for fix_xref_copy in 4 minutes and 3 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed #11952149
build

00:04:03

passed #11952154
build_android

00:00:44

passed #11952150
build_clang12_libcpp

00:03:13

passed #11952153
build_clazy_clang12

00:03:47

passed #11952152
build_mingw64_fedora33

00:02:43

passed #11952151
build_ubuntu_18_04

00:02:02

passed #11952148
clang_format

00:00:47