Skip to content

Commit adf3feb

Browse files
Joao SaffranJoao Saffran
authored andcommitted
address comments from inbelic
1 parent 04658b8 commit adf3feb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,8 @@ static void reportErrors(Module &M, DXILResourceMap &DRM,
248248
llvm::hlsl::BindingInfo::BindingRange ResRange(
249249
ResBinding.LowerBound, ResBinding.LowerBound + ResBinding.Size);
250250

251-
auto IsBound = Info.isBound(ResList.first, ResBinding.Space, ResRange);
252-
if (!IsBound) {
251+
if (!Info.isBound(ResList.first, ResBinding.Space, ResRange))
253252
reportRegNotBound(M, ResList.first, ResBinding);
254-
}
255253
}
256254
}
257255
}

0 commit comments

Comments
 (0)