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(
13909
13909
// before matching base types if other side is an optional, so
13910
13910
// score needs to account for number of such promotions.
13911
13911
int optionalWraps = baseType2.getInt() - baseType1.getInt();
13912
- return recordFix(fix, baseImpact + abs(optionalWraps))
13912
+ return recordFix(fix, baseImpact + std:: abs(optionalWraps))
13913
13913
? SolutionKind::Error
13914
13914
: SolutionKind::Solved;
13915
13915
};
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ ExpressionTimer::~ExpressionTimer() {
82
82
83
83
if (PrintDebugTiming) {
84
84
// 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 )
86
86
<< " ms\t " ;
87
87
if (auto *E = Anchor.dyn_cast <Expr *>()) {
88
88
E->getLoc ().print (llvm::errs (), Context.SourceMgr );
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ namespace {
173
173
174
174
if (ctx.TypeCheckerOpts .DebugTimeFunctionBodies ) {
175
175
// 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 " ;
177
177
Function.getLoc ().print (llvm::errs (), ctx.SourceMgr );
178
178
179
179
if (AFD) {
You can’t perform that action at this time.
0 commit comments