Skip to content

Commit da9cda1

Browse files
committed
NFC: enable -debug-cycles in asserts build
1 parent 2d89111 commit da9cda1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
12721272
if (Args.getLastArg(OPT_debug_cycles))
12731273
Opts.DebugDumpCycles = true;
12741274

1275+
// Enable request evaluator cycle debugging in asserts builds.
1276+
if (CONDITIONAL_ASSERT_enabled())
1277+
Opts.DebugDumpCycles = true;
1278+
12751279
Opts.RequireExplicitSendable |= Args.hasArg(OPT_require_explicit_sendable);
12761280
for (const Arg *A : Args.filtered(OPT_define_availability)) {
12771281
Opts.AvailabilityMacros.push_back(A->getValue());

0 commit comments

Comments
 (0)