Commit 6963309
authored
[Frontend] Avoid creating a temporary instance of std::string (NFC) (llvm#140326)
Since getLastArgValue returns StringRef, and the constructor of
SmallString accepts StringRef, we do not need to go through a
temporary instance of std::string.1 parent dfac044 commit 6963309
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2055 | 2055 | | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | | - | |
2059 | | - | |
| 2058 | + | |
2060 | 2059 | | |
2061 | 2060 | | |
2062 | 2061 | | |
| |||
0 commit comments