Skip to content

Commit 4d0fbbe

Browse files
committed
format
1 parent 84f449b commit 4d0fbbe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

llvm/lib/Frontend/HLSL/HLSLBinding.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ bool BindingInfo::RegisterSpace::isBound(const BindingRange &Range) const {
8383

8484
if (It == FreeRanges.end())
8585
return true;
86-
return ((Range.LowerBound < It->LowerBound) && (Range.UpperBound < It->LowerBound)) ||
87-
((Range.LowerBound > It->UpperBound) && (Range.UpperBound > It->UpperBound));
86+
return ((Range.LowerBound < It->LowerBound) &&
87+
(Range.UpperBound < It->LowerBound)) ||
88+
((Range.LowerBound > It->UpperBound) &&
89+
(Range.UpperBound > It->UpperBound));
8890
}
8991

9092
bool BindingInfo::isBound(dxil::ResourceClass RC, uint32_t Space,

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ static void validateRootSignature(Module &M,
237237
for (const ResourceInfo &RI : DRM) {
238238
const ResourceInfo::ResourceBinding &Binding = RI.getBinding();
239239
ResourceClass RC = DRTM[RI.getHandleTy()].getResourceClass();
240-
if (!Info.isBound(RC, Binding.Space,
241-
{Binding.LowerBound, Binding.LowerBound + Binding.Size - 1}))
240+
if (!Info.isBound(
241+
RC, Binding.Space,
242+
{Binding.LowerBound, Binding.LowerBound + Binding.Size - 1}))
242243
reportRegNotBound(M, RC, Binding);
243244
}
244245
}

0 commit comments

Comments
 (0)