diff options
author | Sam McCall <sam.mccall@gmail.com> | 2021-07-27 13:52:32 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2021-07-27 14:01:35 +0200 |
commit | ec1fb9533305e9bd69294ede7e5e7d9befbb2225 (patch) | |
tree | 709944fbf08003e2e3e617568add8d21f5e23568 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 76f3ffb2b285998f02639db8fd42fb0de8a540d0 (diff) | |
download | llvm-ec1fb9533305e9bd69294ede7e5e7d9befbb2225.zip llvm-ec1fb9533305e9bd69294ede7e5e7d9befbb2225.tar.gz llvm-ec1fb9533305e9bd69294ede7e5e7d9befbb2225.tar.bz2 |
[clangd] Use function pointer instead of function_ref to avoid GCC 5 bug
With GCC <6 constructing a function_ref from a free function reference
leads to it referencing a temporary function pointer. If the lifetime of
that temporary is insufficient it can crash.
Fixes https://github.com/clangd/clangd/issues/800
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions