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]) {