Skip to content

Commit f0ed242

Browse files
committed
clean up: self review
1 parent 2971f5f commit f0ed242

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

llvm/lib/Frontend/HLSL/RootSignatureValidations.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,15 @@ bool verifyBorderColor(uint32_t BorderColor) {
180180

181181
bool verifyLOD(float LOD) { return !std::isnan(LOD); }
182182

183-
bool verifyOffsetOverflow(uint64_t Register) {
184-
return Register > ~0U;
185-
}
183+
bool verifyOffsetOverflow(uint64_t Register) { return Register > ~0U; }
186184

187185
bool verifyRegisterOverflow(uint64_t Register, uint32_t NumDescriptors) {
188186
if (NumDescriptors == ~0U)
189187
return false;
190188

191189
uint64_t UpperBound =
192190
(uint64_t)Register + (uint64_t)NumDescriptors - (uint64_t)1U;
193-
if (UpperBound > ~0U)
194-
return true;
195-
196-
return false;
191+
return UpperBound > ~0U;
197192
}
198193

199194
uint64_t updateAppendingRegister(uint64_t AppendingRegister,

0 commit comments

Comments
 (0)