Skip to content

Commit 08d33ef

Browse files
[Support] Remove a redundant declaration (NFC) (#166085)
In C++17, static constexpr members are implicitly inline, so they no longer require an out-of-line definition. Identified with readability-redundant-declaration.
1 parent 5301a2f commit 08d33ef

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Support/StringRef.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717

1818
using namespace llvm;
1919

20-
// MSVC emits references to this into the translation units which reference it.
21-
#ifndef _MSC_VER
22-
constexpr size_t StringRef::npos;
23-
#endif
24-
2520
// strncasecmp() is not available on non-POSIX systems, so define an
2621
// alternative function here.
2722
static int ascii_strncasecmp(StringRef LHS, StringRef RHS) {

0 commit comments

Comments
 (0)