[lld] Fix small error in previous commit

6f7483b1ec.
This commit is contained in:
Amy Huang 2021-09-17 17:43:28 -07:00
parent 2cda4f8ed7
commit 724a1dff8a
1 changed files with 3 additions and 3 deletions

View 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);
}