Skip to content

Commit 6c7557d

Browse files
committed
[DXIL] Fix -Wunused-but-set-variable after #97593
1 parent 4eb5450 commit 6c7557d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/DXILEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ DXILOperationDesc::DXILOperationDesc(const Record *R) {
140140
if (isAny == 1) {
141141
// All overload types in a DXIL Op are required to be of the same type.
142142
if (!OverloadParamIndices.empty()) {
143-
bool knownType = true;
143+
[[maybe_unused]] bool knownType = true;
144144
// Ensure that the same overload type registered earlier is being used
145145
for (auto Idx : OverloadParamIndices) {
146146
if (TR != ParamTypeRecs[Idx]) {

0 commit comments

Comments
 (0)