Skip to content

Commit eb24065

Browse files
jpienaargithub-actions[bot]
authored andcommitted
Automerge: [llvm][support] Fix DebugLogTest. (#150585)
Fails on windows with error C2466: cannot allocate an array of constant size 0 else.
2 parents b28d7ee + 226fb1c commit eb24065

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)