Commit 9697e46
authored
[ADT] Simplify StringRef(const char *) (NFC) (llvm#160038)
This patch delegates the string length computation to
std::string_view. This way, we don't have to worry about old GCC
versions or call __builtin_strlen on our own.1 parent c0b6ddf commit 9697e46
1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 93 | + | |
102 | 94 | | |
103 | 95 | | |
104 | 96 | | |
| |||
0 commit comments