Skip to content

Commit 919f452

Browse files
committed
const
Created using spr 1.3.4
1 parent e7927a9 commit 919f452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Core/BinaryEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ void BinaryEmitter::emitJumpTable(const JumpTable &JT, MCSection *HotSection,
823823
<< (Offset ? ") as part of larger jump table\n" : ")\n");
824824
});
825825
if (!LabelCounts.empty()) {
826-
uint64_t JTCount = LabelCounts[JTLabel];
826+
const uint64_t JTCount = LabelCounts[JTLabel];
827827
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: jump table count: " << JTCount << '\n');
828828
Streamer.switchSection(JTCount ? HotSection : ColdSection);
829829
Streamer.emitValueToAlignment(Align(JT.EntrySize));

0 commit comments

Comments
 (0)