From e3610d4d708165e8bbc3114a8617c29ee2d1e3c2 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 30 Jul 2024 14:55:03 -0700 Subject: [PATCH] [DXIL] Fix -Wunused-but-set-variable after #97593 --- llvm/utils/TableGen/DXILEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/DXILEmitter.cpp b/llvm/utils/TableGen/DXILEmitter.cpp index 2ae69086e6f6e06..b6a2686cfde30b0 100644 --- a/llvm/utils/TableGen/DXILEmitter.cpp +++ b/llvm/utils/TableGen/DXILEmitter.cpp @@ -140,7 +140,7 @@ DXILOperationDesc::DXILOperationDesc(const Record *R) { if (isAny == 1) { // All overload types in a DXIL Op are required to be of the same type. if (!OverloadParamIndices.empty()) { - bool knownType = true; + [[maybe_unused]] bool knownType = true; // Ensure that the same overload type registered earlier is being used for (auto Idx : OverloadParamIndices) { if (TR != ParamTypeRecs[Idx]) {