[lld] Fix small error in previous commit
authorAmy Huang <akhuang@google.com>
Sat, 18 Sep 2021 00:43:28 +0000 (17:43 -0700)
committerAmy Huang <akhuang@google.com>
Sat, 18 Sep 2021 00:47:21 +0000 (17:47 -0700)
6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d.

lld/Common/Timer.cpp

index 8a2210f..40fecd8 100644 (file)
@@ -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);
 }