We built a StringRef from a string literal which we then converted to a
std::string to call c_str(). Just use a pointer to the string literal
instead of a StringRef.
No behavior change.
Differential D65890
Support: Remove needless allocation when getMainExecutable() calls readlink() thakis on Aug 7 2019, 9:36 AM. Authored by
Details We built a StringRef from a string literal which we then converted to a No behavior change.
Diff Detail
|