Skip to content

Commit d14a49b

Browse files
author
Ben Asher
committed
Add period. Use ceil instead of round
1 parent 5662938 commit d14a49b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ namespace {
155155
ASTContext &ctx = Function.getAsDeclContext()->getASTContext();
156156

157157
if (ShouldDump) {
158-
// Round to the nearest 100th of a millisecond
159-
llvm::errs() << llvm::format("%0.2f", round(elapsed * 100000) / 100) << "ms\t";
158+
// Round up to the nearest 100th of a millisecond.
159+
llvm::errs() << llvm::format("%0.2f", ceil(elapsed * 100000) / 100) << "ms\t";
160160
Function.getLoc().print(llvm::errs(), ctx.SourceMgr);
161161

162162
if (auto *AFD = Function.getAbstractFunctionDecl()) {

0 commit comments

Comments
 (0)