Skip to content

Commit

Permalink
[Utils] Fix clang-tidy warning: Use boolean false, not 0 (NFC) (llvm#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AZero13 authored Jul 23, 2024
1 parent ee07547 commit 786b491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Utils/DXILResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ std::pair<uint32_t, uint32_t> ResourceInfo::getAnnotateProps() const {
uint32_t ResourceKind = llvm::to_underlying(Kind);
uint32_t AlignLog2 = isStruct() ? Log2(Struct.Alignment) : 0;
bool IsUAV = isUAV();
bool IsROV = IsUAV ? UAVFlags.IsROV : 0;
bool IsGloballyCoherent = IsUAV ? UAVFlags.GloballyCoherent : 0;
bool IsROV = IsUAV && UAVFlags.IsROV;
bool IsGloballyCoherent = IsUAV && UAVFlags.GloballyCoherent;
uint8_t SamplerCmpOrHasCounter = 0;
if (IsUAV)
SamplerCmpOrHasCounter = UAVFlags.HasCounter;
Expand Down

0 comments on commit 786b491

Please sign in to comment.