Skip to content

Commit aa7e4ba

Browse files
[BOLT] Fix an unused variable warning
This patch fixes: bolt/lib/Profile/BoltAddressTranslation.cpp:26:12: error: unused variable 'HotFuncAddress' [-Werror,-Wunused-variable]
1 parent af90e19 commit aa7e4ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bolt/lib/Profile/BoltAddressTranslation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void BoltAddressTranslation::writeEntriesForBB(MapTy &Map,
4444
<< " Val: " << Twine::utohexstr(BBInputOffset) << "\n");
4545
LLVM_DEBUG(dbgs() << formatv(" Hash: {0:x}\n",
4646
getBBHash(HotFuncAddress, BBInputOffset)));
47+
(void)HotFuncAddress;
4748
// In case of conflicts (same Key mapping to different Vals), the last
4849
// update takes precedence. Of course it is not ideal to have conflicts and
4950
// those happen when we have an empty BB that either contained only

0 commit comments

Comments
 (0)