diff options
| author | Alex Langford <alangford@apple.com> | 2023-05-02 10:48:53 -0700 |
|---|---|---|
| committer | Alex Langford <alangford@apple.com> | 2023-05-02 17:20:29 -0700 |
| commit | 50e79d725c105344e292d1fe8044a69467c20346 (patch) | |
| tree | aa4d38327cbabad41156cb6d1fd53a444bfbbb25 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 79652fcdbbc6bc9bc0145447d07b947eace1f9cb (diff) | |
[lldb] Minor cleanups at callsites of FileSpec::GetFileNameExtension
FileSpec::GetFileNameExtension returns a StringRef. In some cases we
are calling it and then storing the result in a local. To prevent
cases where we store the StringRef, mutate the Filespec, and then try to
use the stored StringRef afterwards, I've audited the callsites and made
adjustments to mitigate: Either marking the FileSpec it comes from as
const (to avoid mutations) or by not storing the StringRef in a local if
it makes sense not to.
Differential Revision: https://reviews.llvm.org/D149671
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
