[llvm] 62a0049 - [llvm-exegesis] Fix -Wc++98-compat-extra-semi in BenchmarkRunner.cpp (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 00:46:46 PDT 2023


Author: Jie Fu
Date: 2023-04-14T15:46:09+08:00
New Revision: 62a0049ae440732c4272ec62a1ab0de37b1be7cb

URL: https://github.com/llvm/llvm-project/commit/62a0049ae440732c4272ec62a1ab0de37b1be7cb
DIFF: https://github.com/llvm/llvm-project/commit/62a0049ae440732c4272ec62a1ab0de37b1be7cb.diff

LOG: [llvm-exegesis] Fix -Wc++98-compat-extra-semi in BenchmarkRunner.cpp (NFC)

/data/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:66:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-W
c++98-compat-extra-semi]
};
 ^
1 error generated.

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index b747d2351ba1..fd4ce6b28797 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -63,7 +63,7 @@ BenchmarkRunner::FunctionExecutor::runAndSample(const char *Counters) const {
     accumulateCounterValues(ValueOrError.get(), &CounterValues);
   }
   return CounterValues;
-};
+}
 
 namespace {
 class FunctionExecutorImpl : public BenchmarkRunner::FunctionExecutor {


        


More information about the llvm-commits mailing list