[llvm] [BOLT][DWARF][NFC] Added const to variable (PR #73731)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 17:24:48 PST 2023
https://github.com/ayermolo created https://github.com/llvm/llvm-project/pull/73731
Nit followup to 72729.
>From 8c04b8381ff03cbcbc5c9cfaeae635403397d231 Mon Sep 17 00:00:00 2001
From: Alexander Yermolovich <ayermolo at meta.com>
Date: Tue, 28 Nov 2023 17:22:37 -0800
Subject: [PATCH] [BOLT][DWARF][NFC] Added const to variable
Nit followup to 72729.
---
bolt/lib/Core/DIEBuilder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/lib/Core/DIEBuilder.cpp b/bolt/lib/Core/DIEBuilder.cpp
index 6b33303ba553b72..b809b2935ee9ebf 100644
--- a/bolt/lib/Core/DIEBuilder.cpp
+++ b/bolt/lib/Core/DIEBuilder.cpp
@@ -202,7 +202,7 @@ void DIEBuilder::buildTypeUnits(const bool Init) {
true);
}
}
- unsigned int CUNum = getCUNum(DwarfContext, IsDWO);
+ const unsigned int CUNum = getCUNum(DwarfContext, IsDWO);
getState().CloneUnitCtxMap.resize(CUNum);
DWARFContext::unit_iterator_range CU4TURanges =
IsDWO ? DwarfContext->dwo_types_section_units()
More information about the llvm-commits
mailing list