[lld] 724a1df - [lld] Fix small error in previous commit
Amy Huang via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 17 17:47:31 PDT 2021
Author: Amy Huang
Date: 2021-09-17T17:47:21-07:00
New Revision: 724a1dff8a8eabee4ca03036dd3efd84ecd8298a
URL: https://github.com/llvm/llvm-project/commit/724a1dff8a8eabee4ca03036dd3efd84ecd8298a
DIFF: https://github.com/llvm/llvm-project/commit/724a1dff8a8eabee4ca03036dd3efd84ecd8298a.diff
LOG: [lld] Fix small error in previous commit
6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d.
Added:
Modified:
lld/Common/Timer.cpp
Removed:
################################################################################
diff --git a/lld/Common/Timer.cpp b/lld/Common/Timer.cpp
index 8a2210f60eb1..40fecd8892c1 100644
--- a/lld/Common/Timer.cpp
+++ b/lld/Common/Timer.cpp
@@ -26,9 +26,9 @@ void ScopedTimer::stop() {
ScopedTimer::~ScopedTimer() { stop(); }
-Timer::Timer(llvm::StringRef name) : name(std::string(name)), total(0) {}
-Timer::Timer(llvm::StringRef name, Timer &parent) :
- name(std::string(name)), total(0) {
+Timer::Timer(llvm::StringRef name) : total(0), name(std::string(name)) {}
+Timer::Timer(llvm::StringRef name, Timer &parent)
+ : total(0), name(std::string(name)) {
parent.children.push_back(this);
}
More information about the llvm-commits
mailing list