Skip to content

Commit e0653ba

Browse files
[Support] Remove redundant declarations (NFC) (#166106)
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 7db6344 commit e0653ba

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

llvm/lib/Support/BranchProbability.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
using namespace llvm;
2222

23-
constexpr uint32_t BranchProbability::D;
24-
2523
raw_ostream &BranchProbability::print(raw_ostream &OS) const {
2624
if (isUnknown())
2725
return OS << "?%";

llvm/unittests/Support/raw_ostream_proxy_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class BufferedNoPwriteSmallVectorStream : public raw_ostream {
4040
bool IsDisplayed = false;
4141
};
4242

43-
constexpr size_t BufferedNoPwriteSmallVectorStream::PreferredBufferSize;
44-
4543
TEST(raw_ostream_proxyTest, write) {
4644
// Besides confirming that "write" works, this test confirms that the proxy
4745
// takes on the buffer from the stream it's proxying, such that writes to the

0 commit comments

Comments
 (0)