We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5662938 commit d14a49bCopy full SHA for d14a49b
lib/Sema/TypeCheckStmt.cpp
@@ -155,8 +155,8 @@ namespace {
155
ASTContext &ctx = Function.getAsDeclContext()->getASTContext();
156
157
if (ShouldDump) {
158
- // Round to the nearest 100th of a millisecond
159
- llvm::errs() << llvm::format("%0.2f", round(elapsed * 100000) / 100) << "ms\t";
+ // Round up to the nearest 100th of a millisecond.
+ llvm::errs() << llvm::format("%0.2f", ceil(elapsed * 100000) / 100) << "ms\t";
160
Function.getLoc().print(llvm::errs(), ctx.SourceMgr);
161
162
if (auto *AFD = Function.getAbstractFunctionDecl()) {
0 commit comments