Skip to content

Commit 0d28720

Browse files
committed
NFC: enable -debug-cycles in asserts builds
1 parent 27a3941 commit 0d28720

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Frontend/CompilerInvocation.cpp

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

1275+
#ifndef NDEBUG
1276+
// Enable request evaluator cycle debugging in asserts builds.
1277+
Opts.DebugDumpCycles = true;
1278+
#endif
1279+
12751280
Opts.RequireExplicitSendable |= Args.hasArg(OPT_require_explicit_sendable);
12761281
for (const Arg *A : Args.filtered(OPT_define_availability)) {
12771282
Opts.AvailabilityMacros.push_back(A->getValue());

0 commit comments

Comments
 (0)