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-03-21 11:04:22 -07:00
2023-04-17 13:54:19 +02: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
2019-11-13 16:34:37 -08:00
2023-04-17 13:54:19 +02:00
2023-04-17 13:54:19 +02:00
2024-03-28 20:03:03 -07:00
2023-04-17 13:54:19 +02:00
2023-08-02 12:08:37 +02:00
2024-03-05 15:12:22 +00:00
2023-05-11 15:56:43 -07:00
2024-01-23 14:04:52 -08:00
2023-06-06 07:18:33 +00:00
2023-09-07 18:39:19 -04: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
2023-06-29 08:33:45 -07: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-04-17 13:54:19 +02:00
2023-12-03 22:32:21 -08:00
2023-07-08 10:19:07 +01:00
2023-04-14 12:12:48 +02:00
2024-03-19 20:07:07 +00:00
2023-02-22 02:35:13 +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
2023-05-27 22:26:37 -07:00
2024-03-05 15:12:22 +00:00
2023-10-31 10:28:40 +00:00
2023-10-22 11:53:56 -07: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
2023-11-06 16:50:18 +00:00
2023-10-05 11:40:17 -07:00
2024-04-04 10:20:14 +01:00
2024-03-05 15:12:22 +00:00