Oskar Wirga
a9d4ddd98a
[MergeFuncs/CFI] Ensure all type metadata is propogated for CFI (#88218)
I noticed that we weren't propagating ALL type metadata that was
attached to CFI functions:
# BEFORE
```
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !dbg !62311 !type !34028 !type !34029 !type !34030
... fn merging
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !type !34028
```
# AFTER
```
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !dbg !62311 !type !34028 !type !34029 !type !34030
... fn merging
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !type !type !34028 !type !34029 !type !34030
```
This patch makes sure that the entire vector of metadata is copied over.
2024-04-10 15:37:27 -07:00
..
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-09-23 12:28:29 +02:00
2024-04-10 15:37:27 -07:00
2023-01-04 17:07:15 +01:00
2022-12-07 22:22:08 +03:00
2024-03-20 10:59:45 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2024-02-20 09:42:18 -08:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2024-02-07 18:19:39 +00:00
2023-10-19 13:59:57 -07:00
2023-10-11 17:32:41 -07:00
2023-01-04 17:07:15 +01:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2022-12-07 22:22:08 +03:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00
2023-01-04 17:07:15 +01:00