File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ class ProfileAnnotator final {
216
216
"The index must be inside the counters vector by construction - "
217
217
"tripping this assertion indicates a bug in how the contextual "
218
218
"profile is managed by IPO transforms");
219
+ (void)Index;
219
220
Count = Counters[Ins->getIndex()->getZExtValue()];
220
221
}
221
222
auto [It, Ins] =
@@ -280,7 +281,8 @@ class ProfileAnnotator final {
280
281
}
281
282
};
282
283
283
- bool areAllBBsReachable(const Function &F, FunctionAnalysisManager &FAM) {
284
+ [[maybe_unused]] bool areAllBBsReachable(const Function &F,
285
+ FunctionAnalysisManager &FAM) {
284
286
auto &DT = FAM.getResult<DominatorTreeAnalysis>(const_cast<Function &>(F));
285
287
return llvm::all_of(
286
288
F, [&](const BasicBlock &BB) { return DT.isReachableFromEntry(&BB); });
You can’t perform that action at this time.
0 commit comments