From a870c970ac1ee6ef7b0ed212d16f8f70eea785e0 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 6 May 2024 08:19:24 -0700 Subject: [PATCH] Remove unused-but-set variables in glow/glow/lib/LLVMIRCodeGen/FunctionSpecializer.cpp +1 Reviewed By: palmje, dmm-fb Differential Revision: D56887356 --- lib/LLVMIRCodeGen/FunctionSpecializer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/LLVMIRCodeGen/FunctionSpecializer.cpp b/lib/LLVMIRCodeGen/FunctionSpecializer.cpp index 92ec2b2103..7b55cb16fa 100644 --- a/lib/LLVMIRCodeGen/FunctionSpecializer.cpp +++ b/lib/LLVMIRCodeGen/FunctionSpecializer.cpp @@ -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.