<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/68655>68655</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Some code was removed by mistake
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          GengQi-mthreads
      </td>
    </tr>
</table>

<pre>
    This is a normal .cpp code.

`
// struct6.cpp
struct S1 {
  long long a;
  long long b;
};

void inline copyMem(S1 *dst, S1 *src) {
  unsigned *d = reinterpret_cast<unsigned *>(dst);
  unsigned *s = reinterpret_cast<unsigned *>(src);

  for (int i = 0; i < sizeof(S1) / sizeof(unsigned); i++) {
    *d = *s;
    d++;
    s++;
 }
}

void math(S1 *dst, int *srcA, int idx_t) {

  S1 zero[4];
  for (int i = 0; i < 4; i++) {
    zero[i].a = i + idx_t;
 zero[i].b = i * idx_t;
  }

  copyMem(&dst[idx_t], &zero[srcA[idx_t]]);
}
`

clang++ struct6.cpp -O2 -S -emit-llvm

`; ModuleID = 'struct6.cpp'
source_filename = "struct6.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_Z4mathP2S1Pii(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  ret void
}

attributes #0 = { mustprogress nofree nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 16.0.0"}
`

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVs2uo7gSfhpnUyKCMhCyyCI56XPV0m3dvjqzmk3kQEE8DTayzUnSTz-yITkk_aNZjBSZwv6--nNVBWGtbBTRhmU7lu0XYnAnbTb_IdX8X0adOxkSlV0cdXXd_HGSFqQFAUqbTrSwLPseSl3RksV7Fm-nNY8nAV8ZvoJ1Zihd7sHj_rgBbwmw1W7cAmi1asZFMP6T3eN9l632H3JY37WsQKpWKoJS99cv1DEsvH7cVtYxfIHxxZqS4XpudlAh_ipAgfE9GJLKkekNuUMprGP8ZQ5i_BPDImhdzxydQ-w_1zM69BQOQK0NMCykciCDspjxXRBfwMrvpOsQX4jFZ_i2dTMw6gTJcBd-DyHDR6ze2VkQANXEmO_Z5z1_AfebeL6GTrjTc_J9HGP2t7dXWV0O7sGxm8G3BL6T0SzbpSzbzzz5XVLS34U7qZMs2y9FYEpguJt8uBuYw4532PYZBk9Rw6zkGOY-5Gw3crK9D5dhPqkOCZgd-vP1Q10_NVBYy1aoZgxt3ksQ_Q8heoOIOumitn3vnpuQ7-CLroaWPu-n217NexFXUzvqwZR0qGVLSnQ0QfEBiiPUCdOQg0o40YqrHtwNTFHH-JaiHlcx41uOYfGvyeOrl_I0LJG8CXXhSQkWkSq8kN84eRq9JT6tj_adkX17d_RS5Ic8jQb1TemzilqphkvUqOHOmla-g9dBlU5qBVvnjGV8C91gXW90Y8haULo2RKC0vaoSlB7UWaoKOuq0uTIshGk68oGCn4pnIx35YhvOThxbGs1UVPsxVFl9aHUpWghdwdL48Gfqe-MrviVfpWRY9M6A0qXo3WAoWKuohqBVq_YKDLPY18_Pcd6DGywJXcXxfsgwQ-9Z8OAwKH-v1UFUle8gHs_bw5ALLv60o4VzRh4HR3bi-Yyvdv9m1v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