Skip to content

Commit

Permalink
[DXIL] Fix -Wunused-but-set-variable after llvm#97593
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay authored and clementval committed Jul 31, 2024
1 parent 44c9d08 commit e3610d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/DXILEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit e3610d4

Please sign in to comment.