Commit 8d61f82
authored
[lld][RISCV] Avoid second map lookup in mergeArch. NFC (llvm#84687)
Instead of using find and then inserting into the map, we can use
insert and fix up the version using the iterator if the insert fails.1 parent b2ea046 commit 8d61f82
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | | - | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1079 | 1080 | | |
1080 | | - | |
| 1081 | + | |
1081 | 1082 | | |
1082 | | - | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
| |||
0 commit comments