Skip to content

Commit

Permalink
[lld] Fix small error in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amykhuang committed Sep 18, 2021
1 parent 2cda4f8 commit 724a1df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lld/Common/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 724a1df

Please sign in to comment.