Skip to content

Commit 1cc5431

Browse files
[BOLT] Fix warnings
This patch fixes: bolt/lib/Core/BinaryFunctionProfile.cpp:222:10: error: variable 'BBMergeSI' set but not used [-Werror,-Wunused-but-set-variable] bolt/lib/Passes/VeneerElimination.cpp:67:12: error: variable 'VeneerCallers' set but not used [-Werror,-Wunused-but-set-variable]
1 parent da0decf commit 1cc5431

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bolt/lib/Core/BinaryFunctionProfile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void BinaryFunction::mergeProfileDataInto(BinaryFunction &BF) const {
225225
for (const BinaryBasicBlock *BBSucc : BB->successors()) {
226226
(void)BBSucc;
227227
assert(getIndex(BBSucc) == BF.getIndex(*BBMergeSI));
228+
(void)BBMergeSI;
228229

229230
// At this point no branch count should be set to COUNT_NO_PROFILE.
230231
assert(BII->Count != BinaryBasicBlock::COUNT_NO_PROFILE &&

bolt/lib/Passes/VeneerElimination.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void VeneerElimination::runOnFunctions(BinaryContext &BC) {
8989
LLVM_DEBUG(
9090
dbgs() << "BOLT-INFO: number of linker-inserted veneers call sites: "
9191
<< VeneerCallers << "\n");
92+
(void)VeneerCallers;
9293
}
9394

9495
} // namespace bolt

0 commit comments

Comments
 (0)