From: Amy Huang Date: Sat, 18 Sep 2021 00:43:28 +0000 (-0700) Subject: [lld] Fix small error in previous commit X-Git-Tag: upstream/15.0.7~31181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=724a1dff8a8eabee4ca03036dd3efd84ecd8298a;p=platform%2Fupstream%2Fllvm.git [lld] Fix small error in previous commit 6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d. --- diff --git a/lld/Common/Timer.cpp b/lld/Common/Timer.cpp index 8a2210f..40fecd8 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); }