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 @@ -13974,7 +13974,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
13974
13974
// before matching base types if other side is an optional, so
13975
13975
// score needs to account for number of such promotions.
13976
13976
int optionalWraps = baseType2.getInt() - baseType1.getInt();
13977
- return recordFix(fix, baseImpact + abs(optionalWraps))
13977
+ return recordFix(fix, baseImpact + std:: abs(optionalWraps))
13978
13978
? SolutionKind::Error
13979
13979
: SolutionKind::Solved;
13980
13980
};
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ ExpressionTimer::~ExpressionTimer() {
80
80
81
81
if (PrintDebugTiming) {
82
82
// Round up to the nearest 100th of a millisecond.
83
- llvm::errs () << llvm::format (" %0.2f" , ceil (elapsed * 100000 ) / 100 )
83
+ llvm::errs () << llvm::format (" %0.2f" , std:: ceil (elapsed * 100000 ) / 100 )
84
84
<< " ms\t " ;
85
85
if (auto *E = Anchor.dyn_cast <Expr *>()) {
86
86
E->getLoc ().print (llvm::errs (), Context.SourceMgr );
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ namespace {
172
172
173
173
if (ctx.TypeCheckerOpts .DebugTimeFunctionBodies ) {
174
174
// Round up to the nearest 100th of a millisecond.
175
- llvm::errs () << llvm::format (" %0.2f" , ceil (elapsed * 100000 ) / 100 ) << " ms\t " ;
175
+ llvm::errs () << llvm::format (" %0.2f" , std:: ceil (elapsed * 100000 ) / 100 ) << " ms\t " ;
176
176
Function.getLoc ().print (llvm::errs (), ctx.SourceMgr );
177
177
178
178
if (AFD) {
You can’t perform that action at this time.
0 commit comments