Skip to content

Commit cd89da5

Browse files
AZero13yuxuanchen1997
authored andcommitted
[Utils] Fix clang-tidy warning: Use boolean false, not 0 (NFC) (#99828)
1 parent 42ab9d8 commit cd89da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/DXILResource.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ std::pair<uint32_t, uint32_t> ResourceInfo::getAnnotateProps() const {
329329
uint32_t ResourceKind = llvm::to_underlying(Kind);
330330
uint32_t AlignLog2 = isStruct() ? Log2(Struct.Alignment) : 0;
331331
bool IsUAV = isUAV();
332-
bool IsROV = IsUAV ? UAVFlags.IsROV : 0;
333-
bool IsGloballyCoherent = IsUAV ? UAVFlags.GloballyCoherent : 0;
332+
bool IsROV = IsUAV && UAVFlags.IsROV;
333+
bool IsGloballyCoherent = IsUAV && UAVFlags.GloballyCoherent;
334334
uint8_t SamplerCmpOrHasCounter = 0;
335335
if (IsUAV)
336336
SamplerCmpOrHasCounter = UAVFlags.HasCounter;

0 commit comments

Comments
 (0)