Skip to content

Commit ab705bf

Browse files
authored
Fix mlir warning to errors (#1541)
1 parent c4736f3 commit ab705bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

enzyme/Enzyme/MLIR/Passes/EnzymeMLIRPass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ struct DifferentiatePass : public DifferentiatePassBase<DifferentiatePass> {
7474

7575
std::vector<bool> volatile_args;
7676
for (auto &a : fn.getFunctionBody().getArguments()) {
77+
(void)a;
7778
volatile_args.push_back(!(mode == DerivativeMode::ReverseModeCombined));
7879
}
7980

@@ -134,6 +135,7 @@ struct DifferentiatePass : public DifferentiatePassBase<DifferentiatePass> {
134135

135136
std::vector<bool> volatile_args;
136137
for (auto &a : fn.getFunctionBody().getArguments()) {
138+
(void)a;
137139
volatile_args.push_back(!(mode == DerivativeMode::ReverseModeCombined));
138140
}
139141

0 commit comments

Comments
 (0)