aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetRegisterInfo.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-07 00:39:13 -0800
committerKazu Hirata <kazu@google.com>2022-01-07 00:39:14 -0800
commit2aed08131df569809ab4826036cb963e6d2eb16c (patch)
treeadfa6671aa65baf628a6e8a3b97957b6c436545c /llvm/lib/CodeGen/TargetRegisterInfo.cpp
parent34646a2f7ee1564b0f6ff706b32d7206e39aac9f (diff)
downloadllvm-2aed08131df569809ab4826036cb963e6d2eb16c.zip
llvm-2aed08131df569809ab4826036cb963e6d2eb16c.tar.gz
llvm-2aed08131df569809ab4826036cb963e6d2eb16c.tar.bz2
[llvm] Use true/false instead of 1/0 (NFC)
Identified with modernize-use-bool-literals.
Diffstat (limited to 'llvm/lib/CodeGen/TargetRegisterInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetRegisterInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetRegisterInfo.cpp b/llvm/lib/CodeGen/TargetRegisterInfo.cpp
index f5cb518..6bcf7954 100644
--- a/llvm/lib/CodeGen/TargetRegisterInfo.cpp
+++ b/llvm/lib/CodeGen/TargetRegisterInfo.cpp
@@ -552,7 +552,7 @@ bool TargetRegisterInfo::getCoveringSubRegIndexes(
// Abort if we cannot possibly implement the COPY with the given indexes.
if (BestIdx == 0)
- return 0;
+ return false;
NeededIndexes.push_back(BestIdx);
@@ -581,7 +581,7 @@ bool TargetRegisterInfo::getCoveringSubRegIndexes(
}
if (BestIdx == 0)
- return 0; // Impossible to handle
+ return false; // Impossible to handle
NeededIndexes.push_back(BestIdx);