We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cda4f8 commit 724a1dfCopy full SHA for 724a1df
lld/Common/Timer.cpp
@@ -26,9 +26,9 @@ void ScopedTimer::stop() {
26
27
ScopedTimer::~ScopedTimer() { stop(); }
28
29
-Timer::Timer(llvm::StringRef name) : name(std::string(name)), total(0) {}
30
-Timer::Timer(llvm::StringRef name, Timer &parent) :
31
- 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)) {
32
parent.children.push_back(this);
33
}
34
0 commit comments