Skip to content

Commit 53b19a7

Browse files
committed
Fix warning about parentheses around '&&' within '||'
1 parent 6747ea0 commit 53b19a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/DirectX/DXContainerGlobals.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ void DXContainerGlobals::addResourcesForPSV(Module &M, PSVRuntimeInfo &PSV) {
194194
dxbc::PSV::v2::ResourceBindInfo BindInfo;
195195
BindInfo.Type = Type;
196196
BindInfo.LowerBound = Binding.LowerBound;
197-
assert(Binding.Size == UINT32_MAX ||
198-
(uint64_t)Binding.LowerBound + Binding.Size - 1 <= UINT32_MAX &&
199-
"Resource range is too large");
197+
assert(
198+
(Binding.Size == UINT32_MAX ||
199+
(uint64_t)Binding.LowerBound + Binding.Size - 1 <= UINT32_MAX) &&
200+
"Resource range is too large");
200201
BindInfo.UpperBound = (Binding.Size == UINT32_MAX)
201202
? UINT32_MAX
202203
: Binding.LowerBound + Binding.Size - 1;

0 commit comments

Comments
 (0)