aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-17 18:08:51 -0700
committerKazu Hirata <kazu@google.com>2022-07-17 18:08:51 -0700
commit7094ab4ee75771539a4426163345f0746a017006 (patch)
tree7a3b248302a1ad13998b5da70079329a3fa8998e /llvm/lib/Object/WasmObjectFile.cpp
parent1dc8038dad585dd1b59c18f158441a6066e17375 (diff)
downloadllvm-7094ab4ee75771539a4426163345f0746a017006.zip
llvm-7094ab4ee75771539a4426163345f0746a017006.tar.gz
llvm-7094ab4ee75771539a4426163345f0746a017006.tar.bz2
[llvm] Modernize bool literals (NFC)
Identified with modernize-use-bool-literals.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index ce816b0..d00359c 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -204,7 +204,7 @@ static Error readInitExpr(wasm::WasmInitExpr &Expr,
if (Expr.Extended) {
Ctx.Ptr = Start;
- while (1) {
+ while (true) {
uint8_t Opcode = readOpcode(Ctx);
switch (Opcode) {
case wasm::WASM_OPCODE_I32_CONST: