aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lld/ELF/CallGraphSort.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lld/ELF/CallGraphSort.cpp')
-rw-r--r--contrib/llvm-project/lld/ELF/CallGraphSort.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm-project/lld/ELF/CallGraphSort.cpp b/contrib/llvm-project/lld/ELF/CallGraphSort.cpp
index 21c641b5161f..15da4d2414ab 100644
--- a/contrib/llvm-project/lld/ELF/CallGraphSort.cpp
+++ b/contrib/llvm-project/lld/ELF/CallGraphSort.cpp
@@ -68,7 +68,7 @@ struct Cluster {
int next;
int prev;
- size_t size = 0;
+ uint64_t size;
uint64_t weight = 0;
uint64_t initialWeight = 0;
Edge bestPred = {-1, 0};
@@ -223,14 +223,14 @@ DenseMap<const InputSectionBase *, int> CallGraphSort::run() {
DenseMap<const InputSectionBase *, int> orderMap;
int curOrder = 1;
- for (int leader : sorted)
+ for (int leader : sorted) {
for (int i = leader;;) {
orderMap[sections[i]] = curOrder++;
i = clusters[i].next;
if (i == leader)
break;
}
-
+ }
if (!config->printSymbolOrder.empty()) {
std::error_code ec;
raw_fd_ostream os(config->printSymbolOrder, ec, sys::fs::OF_None);