mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[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.
This commit is contained in:
parent
ebed4692f8
commit
3641d18557
@ -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 *) {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user