Skip to content

Commit 7b3f6e6

Browse files
committed
[llvm-exegesis] Fix in SubprocessMemoryTest after commit adb01de
Make sure the TestCount const definition is guarded the same way as the use of the constant. This is an attempt to fix buildbot failures related to -Wunused-const-variable.
1 parent 0a7a926 commit 7b3f6e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/unittests/tools/llvm-exegesis/X86/SubprocessMemoryTest.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#include <unistd.h>
2121
#endif // __linux__
2222

23-
// This needs to be updated anytime a test is added or removed from the test
24-
// suite.
25-
static constexpr const size_t TestCount = 4;
26-
2723
namespace llvm {
2824
namespace exegesis {
2925

3026
#if defined(__linux__) && !defined(__ANDROID__)
3127

28+
// This needs to be updated anytime a test is added or removed from the test
29+
// suite.
30+
static constexpr const size_t TestCount = 4;
31+
3232
class SubprocessMemoryTest : public X86TestBase {
3333
protected:
3434
int getSharedMemoryNumber(const unsigned TestNumber) {

0 commit comments

Comments
 (0)