Skip to content

Commit eb88c04

Browse files
authored
[NFC][DirectX] Fix variable set but not used warning (#155445)
1 parent e7d9b79 commit eb88c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void reportOverlappingError(Module &M, ResourceInfo R1,
9595
}
9696

9797
static void reportOverlappingBinding(Module &M, DXILResourceMap &DRM) {
98-
bool ErrorFound = false;
98+
[[maybe_unused]] bool ErrorFound = false;
9999
for (const auto &ResList :
100100
{DRM.srvs(), DRM.uavs(), DRM.cbuffers(), DRM.samplers()}) {
101101
if (ResList.empty())

0 commit comments

Comments
 (0)