File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13909,7 +13909,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
1390913909 // before matching base types if other side is an optional, so
1391013910 // score needs to account for number of such promotions.
1391113911 int optionalWraps = baseType2.getInt() - baseType1.getInt();
13912- return recordFix(fix, baseImpact + abs(optionalWraps))
13912+ return recordFix(fix, baseImpact + std:: abs(optionalWraps))
1391313913 ? SolutionKind::Error
1391413914 : SolutionKind::Solved;
1391513915 };
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ ExpressionTimer::~ExpressionTimer() {
8282
8383 if (PrintDebugTiming) {
8484 // Round up to the nearest 100th of a millisecond.
85- llvm::errs () << llvm::format (" %0.2f" , ceil (elapsed * 100000 ) / 100 )
85+ llvm::errs () << llvm::format (" %0.2f" , std:: ceil (elapsed * 100000 ) / 100 )
8686 << " ms\t " ;
8787 if (auto *E = Anchor.dyn_cast <Expr *>()) {
8888 E->getLoc ().print (llvm::errs (), Context.SourceMgr );
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ namespace {
173173
174174 if (ctx.TypeCheckerOpts .DebugTimeFunctionBodies ) {
175175 // Round up to the nearest 100th of a millisecond.
176- llvm::errs () << llvm::format (" %0.2f" , ceil (elapsed * 100000 ) / 100 ) << " ms\t " ;
176+ llvm::errs () << llvm::format (" %0.2f" , std:: ceil (elapsed * 100000 ) / 100 ) << " ms\t " ;
177177 Function.getLoc ().print (llvm::errs (), ctx.SourceMgr );
178178
179179 if (AFD) {
You can’t perform that action at this time.
0 commit comments