Files
clang-p2996/llvm/lib/Support/Twine.cpp
Jan Svoboda 673d963436 [llvm][ADT] Make Twine aware of StringLiteral
The `const char *` storage backing StringLiteral has static lifetime. Making `Twine` aware of that allows us to avoid allocating heap memory in some contexts (e.g. avoid passing it to `StringSaver::save()` in a follow-up Clang patch).

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D157010
2023-08-03 10:52:57 -07:00

4.8 KiB