[llvm] 58df646 - [Support/BLAKE3] Remove some dead stores (#95120)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 22:00:14 PDT 2024
Author: Tom Stellard
Date: 2024-06-12T22:00:11-07:00
New Revision: 58df6467140d022c70213215c3617080ba7a7934
URL: https://github.com/llvm/llvm-project/commit/58df6467140d022c70213215c3617080ba7a7934
DIFF: https://github.com/llvm/llvm-project/commit/58df6467140d022c70213215c3617080ba7a7934.diff
LOG: [Support/BLAKE3] Remove some dead stores (#95120)
These were caught by the clang static analyzer.
Added:
Modified:
llvm/lib/Support/BLAKE3/blake3.c
Removed:
################################################################################
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