[all-commits] [llvm/llvm-project] ec1fb9: [clangd] Use function pointer instead of function_...
Sam McCall via All-commits
all-commits at lists.llvm.org
Tue Jul 27 05:01:51 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ec1fb9533305e9bd69294ede7e5e7d9befbb2225
https://github.com/llvm/llvm-project/commit/ec1fb9533305e9bd69294ede7e5e7d9befbb2225
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2021-07-27 (Tue, 27 Jul 2021)
Changed paths:
M clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list