Skip to content

Commit

Permalink
Remove unused-but-set variables in glow/glow/lib/LLVMIRCodeGen/Functi…
Browse files Browse the repository at this point in the history
…onSpecializer.cpp +1

Reviewed By: palmje, dmm-fb

Differential Revision: D56887356
  • Loading branch information
r-barnes authored and facebook-github-bot committed May 6, 2024
1 parent 35e51db commit a870c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/LLVMIRCodeGen/FunctionSpecializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ class FunctionSpecializer {
// The specialized function only takes non-specialized parameters from the
// original function call. Check that the types of these parameters are
// the same for the original and the specialized function.
for (size_t argIdx = 0, specializedFnArgIdx = 0, e = F->arg_size();
for ([[maybe_unused]] size_t argIdx = 0, specializedFnArgIdx = 0,
e = F->arg_size();
argIdx < e; ++argIdx) {
// If the parameter is specialized, it is not present in the specialized
// function.
Expand Down

0 comments on commit a870c97

Please sign in to comment.