NFC: Silence two warnings for unused bufferization symbols in release mode.

Differential Revision: https://reviews.llvm.org/D126182
This commit is contained in:
Stella Laurenzo 2022-05-21 21:30:01 -07:00
parent 89e663c4f8
commit 02d3499a46
2 changed files with 4 additions and 0 deletions

View File

@ -389,6 +389,8 @@ private:
DenseSet<Operation *> &toMemrefOps;
/// The bufferization options.
/// Used for debug modes.
LLVM_ATTRIBUTE_UNUSED
const BufferizationOptions &options;
};
} // namespace

View File

@ -105,6 +105,8 @@ static FuncAnalysisState &getFuncAnalysisState(AnalysisState &state) {
}
/// Return the state (phase) of analysis of the FuncOp.
/// Used for debug modes.
LLVM_ATTRIBUTE_UNUSED
static FuncOpAnalysisState getFuncOpAnalysisState(const AnalysisState &state,
func::FuncOp funcOp) {
const FuncAnalysisState &funcState = getFuncAnalysisState(state);