[llvm] [Support/BLAKE3] Remove some dead stores (PR #95120)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 07:03:45 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/95120
These were caught by the clang static analyzer.
>From b7d8eb9b673ee97de84410eb913562909181fc4f Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 11 Jun 2024 07:01:21 -0700
Subject: [PATCH] [Support/BLAKE3] Remove some dead stores
These were caught by the clang static analyzer.
---
llvm/lib/Support/BLAKE3/blake3.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/Support/BLAKE3/blake3.c b/llvm/lib/Support/BLAKE3/blake3.c
index a369452a3e759..23f0252602de2 100644
--- a/llvm/lib/Support/BLAKE3/blake3.c
+++ b/llvm/lib/Support/BLAKE3/blake3.c
@@ -141,9 +141,7 @@ INLINE void chunk_state_update(blake3_chunk_state *self, const uint8_t *input,
input_len -= BLAKE3_BLOCK_LEN;
}
- size_t take = chunk_state_fill_buf(self, input, input_len);
- input += take;
- input_len -= take;
+ chunk_state_fill_buf(self, input, input_len);
}
INLINE output_t chunk_state_output(const blake3_chunk_state *self) {
More information about the llvm-commits
mailing list