mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
constexpr std::string_view -> const std::string_view
This works around gcc 7.2/clang rC347417 which have a bad interaction with libstdc++'s implementation of P0426 constexpr std::string_view also emits a string_view object in .rodata that cannot be optimized out by clang (which means larger object file size) So use good old const.
This commit is contained in:
parent
7f8f68c0b2
commit
9603a73421
@ -412,8 +412,8 @@ void LaunchStdin() {
|
||||
std::thread([]() {
|
||||
set_thread_name("stdin");
|
||||
std::string str;
|
||||
const std::string_view kContentLength("Content-Length: ");
|
||||
while (true) {
|
||||
constexpr std::string_view kContentLength("Content-Length: ");
|
||||
int len = 0;
|
||||
str.clear();
|
||||
while (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user