[llvm] [Utils] Use boolean false, not 0 (NFC) (PR #99828)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 16:36:07 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
@llvm/pr-subscribers-backend-directx
Author: AtariDreams (AtariDreams)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/99828.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Utils/DXILResource.cpp (+2-2)
``````````diff
diff --git a/llvm/lib/Transforms/Utils/DXILResource.cpp b/llvm/lib/Transforms/Utils/DXILResource.cpp
index bf45654a591b5..fdc009b241521 100644
--- a/llvm/lib/Transforms/Utils/DXILResource.cpp
+++ b/llvm/lib/Transforms/Utils/DXILResource.cpp
@@ -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 : false;
+ bool IsGloballyCoherent = IsUAV ? UAVFlags.GloballyCoherent : false;
uint8_t SamplerCmpOrHasCounter = 0;
if (IsUAV)
SamplerCmpOrHasCounter = UAVFlags.HasCounter;
``````````
</details>
https://github.com/llvm/llvm-project/pull/99828
More information about the llvm-commits
mailing list