aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/TGParser.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/TableGen/TGParser.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/TableGen/TGParser.cpp')
-rw-r--r--llvm/lib/TableGen/TGParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 6ccca4d..3709a37 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -3203,7 +3203,8 @@ bool TGParser::ParseIf(MultiClass *CurMultiClass) {
// iteration variable being assigned.
ListInit *EmptyList = ListInit::get({}, BitRecTy::get());
- ListInit *SingletonList = ListInit::get({BitInit::get(1)}, BitRecTy::get());
+ ListInit *SingletonList =
+ ListInit::get({BitInit::get(true)}, BitRecTy::get());
RecTy *BitListTy = ListRecTy::get(BitRecTy::get());
// The foreach containing the then-clause selects SingletonList if