Commit 298ace7
authored
[TableGen] Use std::string::find (NFC) (llvm#139681)
This patch partially reverts llvm#139661 for a better solution.
Specifically, we can take advantage of the fact that std::string::find
accepts anything that can be converted to std::string_view, including
StringRef, starting with C++17. This way, we do not need to cast Val
to StringRef or LHSs->getValue() to std::string.1 parent cc2bedd commit 298ace7
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
1799 | | - | |
1800 | | - | |
| 1799 | + | |
1801 | 1800 | | |
1802 | | - | |
1803 | | - | |
| 1801 | + | |
| 1802 | + | |
1804 | 1803 | | |
1805 | | - | |
1806 | | - | |
| 1804 | + | |
| 1805 | + | |
1807 | 1806 | | |
1808 | 1807 | | |
1809 | 1808 | | |
| |||
0 commit comments