[libc-commits] [libc] 3641d18 - [libc][Obvious] Fix incorrect RPC opcode for `clearerr`
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Sep 20 09:54:40 PDT 2023
Author: Joseph Huber
Date: 2023-09-20T11:54:35-05:00
New Revision: 3641d185575efc42dc3e32cd06db7667a0c2bb9e
URL: https://github.com/llvm/llvm-project/commit/3641d185575efc42dc3e32cd06db7667a0c2bb9e
DIFF: https://github.com/llvm/llvm-project/commit/3641d185575efc42dc3e32cd06db7667a0c2bb9e.diff
LOG: [libc][Obvious] Fix incorrect RPC opcode for `clearerr`
Summary:
This was mistakenly using the opcode for `ferror` which wasn't noticed
because tests using this weren't yet activated. This patch fixes this
mistake.
Added:
Modified:
libc/src/stdio/gpu/clearerr.cpp
Removed:
################################################################################
diff --git a/libc/src/stdio/gpu/clearerr.cpp b/libc/src/stdio/gpu/clearerr.cpp
index dc7a3729aa78982..01c34ca936b11a1 100644
--- a/libc/src/stdio/gpu/clearerr.cpp
+++ b/libc/src/stdio/gpu/clearerr.cpp
@@ -14,7 +14,7 @@
namespace __llvm_libc {
LLVM_LIBC_FUNCTION(void, clearerr, (::FILE * stream)) {
- rpc::Client::Port port = rpc::client.open<RPC_FERROR>();
+ rpc::Client::Port port = rpc::client.open<RPC_CLEARERR>();
port.send_and_recv(
[=](rpc::Buffer *buffer) { buffer->data[0] = file::from_stream(stream); },
[&](rpc::Buffer *) {});
More information about the libc-commits
mailing list