File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ namespace {
198
198
ASTContext &ctx = Function.getAsDeclContext ()->getASTContext ();
199
199
auto *AFD = Function.getAbstractFunctionDecl ();
200
200
201
- if (ctx.TypeCheckerOpts .WarnLongFunctionBodies ) {
201
+ if (ctx.TypeCheckerOpts .DebugTimeFunctionBodies ) {
202
202
// Round up to the nearest 100th of a millisecond.
203
203
llvm::errs () << llvm::format (" %0.2f" , ceil (elapsed * 100000 ) / 100 ) << " ms\t " ;
204
204
Function.getLoc ().print (llvm::errs (), ctx.SourceMgr );
@@ -213,7 +213,7 @@ namespace {
213
213
llvm::errs () << " \n " ;
214
214
}
215
215
216
- const auto WarnLimit = ctx.TypeCheckerOpts .DebugTimeFunctionBodies ;
216
+ const auto WarnLimit = ctx.TypeCheckerOpts .WarnLongFunctionBodies ;
217
217
if (WarnLimit != 0 && elapsedMS >= WarnLimit) {
218
218
if (AFD) {
219
219
ctx.Diags .diagnose (AFD, diag::debug_long_function_body,
You can’t perform that action at this time.
0 commit comments