Commit d5a62b7
authored
[lldb][NFCI] Remove unneccessary allocation in ScriptInterpreterPythonImpl::GetSyntheticTypeName (#66724)
Instead of copying memory out of the PythonString (via a std::string)
and then using that to create a ConstString, it would make more sense to
just create the ConstString from the original StringRef in the first
place.1 parent 45e6e4d commit d5a62b7
File tree
1 file changed
+4
-17
lines changed- lldb/source/Plugins/ScriptInterpreter/Python
1 file changed
+4
-17
lines changedLines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
| 2441 | + | |
| 2442 | + | |
2441 | 2443 | | |
2442 | | - | |
2443 | | - | |
2444 | | - | |
2445 | | - | |
2446 | | - | |
2447 | | - | |
2448 | | - | |
2449 | | - | |
2450 | | - | |
2451 | | - | |
2452 | | - | |
2453 | | - | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
| 2444 | + | |
| 2445 | + | |
2459 | 2446 | | |
2460 | 2447 | | |
2461 | 2448 | | |
| |||
0 commit comments