Skip to content

Commit 226fb1c

Browse files
authored
[llvm][support] Fix DebugLogTest. (llvm#150585)
Fails on windows with error C2466: cannot allocate an array of constant size 0 else.
1 parent da7ec1e commit 226fb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Support/DebugLogTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ TEST(DebugLogTest, Basic) {
6666
// LDBG should be compiled out in NDEBUG, so just check it compiles and has
6767
// no effect.
6868
llvm::DebugFlag = true;
69-
static const char *DT[] = {};
69+
static const char *DT[] = {"A"};
7070
setCurrentDebugTypes(DT, 0);
7171
int count = 0;
7272
auto inc = [&]() { return ++count; };

0 commit comments

Comments
 (0)