[llvm] e3e26dc - [llvm] Remove extra ';' outside of a function (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 04:48:41 PST 2025
Author: Jie Fu
Date: 2025-01-09T20:47:54+08:00
New Revision: e3e26dc41a6ad78c35a1a723cd77f5db8599797d
URL: https://github.com/llvm/llvm-project/commit/e3e26dc41a6ad78c35a1a723cd77f5db8599797d
DIFF: https://github.com/llvm/llvm-project/commit/e3e26dc41a6ad78c35a1a723cd77f5db8599797d.diff
LOG: [llvm] Remove extra ';' outside of a function (NFC)
/llvm-project/llvm/lib/Support/Timer.cpp:565:74:
error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
static bool mtg::TrackSpace() { return ManagedTimerGlobals->TrackSpace; };
^
1 error generated.
Added:
Modified:
llvm/lib/Support/Timer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 5c0b5943d31f7d..ccd78ad86e91c9 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -562,7 +562,7 @@ static std::string &mtg::LibSupportInfoOutputFilename() {
static const std::string &mtg::InfoOutputFilename() {
return ManagedTimerGlobals->InfoOutputFilename.getValue();
}
-static bool mtg::TrackSpace() { return ManagedTimerGlobals->TrackSpace; };
+static bool mtg::TrackSpace() { return ManagedTimerGlobals->TrackSpace; }
static bool mtg::SortTimers() { return ManagedTimerGlobals->SortTimers; }
static SignpostEmitter &mtg::Signposts() {
return ManagedTimerGlobals->Signposts();
More information about the llvm-commits
mailing list