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
..
2024-03-12 09:47:42 +00:00
2024-03-05 15:12:22 +00:00
2024-03-21 10:54:03 +05:30
2024-03-28 20:03:03 -07:00
2024-03-05 15:12:22 +00:00
2024-01-23 14:04:52 -08:00
2024-01-02 06:59:56 +08:00
2024-03-12 11:00:02 +08:00
2023-11-22 10:41:01 +00:00
2024-03-05 15:12:22 +00:00
2024-03-20 10:59:45 +01:00
2024-02-22 18:58:50 +01:00
2023-12-03 22:32:21 -08:00
2024-03-19 20:07:07 +00:00
2024-02-09 13:55:08 -08:00
2024-04-09 14:12:32 -07:00
2024-04-10 15:37:27 -07:00
2024-03-05 15:12:22 +00:00
2024-04-09 19:25:08 -07:00
2024-04-03 09:46:00 -07:00
2024-04-03 11:18:29 -07:00
2023-11-20 20:53:24 +00:00
2024-04-04 10:20:14 +01:00
2024-03-05 15:12:22 +00:00