diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-17 18:08:51 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-17 18:08:51 -0700 |
commit | 7094ab4ee75771539a4426163345f0746a017006 (patch) | |
tree | 7a3b248302a1ad13998b5da70079329a3fa8998e /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 1dc8038dad585dd1b59c18f158441a6066e17375 (diff) | |
download | llvm-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.cpp | 2 |
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: |