[llvm] 198a253 - [llvm][perf] fix a compiler warning when compile LLVM with LLVM_USE_PERF.
Peiming Liu via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 21:53:21 PST 2022
Author: Peiming Liu
Date: 2022-12-10T05:53:15Z
New Revision: 198a253715fbab8d883ca148e00145e3b487c2ea
URL: https://github.com/llvm/llvm-project/commit/198a253715fbab8d883ca148e00145e3b487c2ea
DIFF: https://github.com/llvm/llvm-project/commit/198a253715fbab8d883ca148e00145e3b487c2ea.diff
LOG: [llvm][perf] fix a compiler warning when compile LLVM with LLVM_USE_PERF.
To fix "PerfJITEventListener.cpp:208:32: warning: missing field 'Version' initializer [-Wmissing-field-initializers]"
Reviewed By: ezhulenev
Differential Revision: https://reviews.llvm.org/D139754
Added:
Modified:
llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
index bb41bac325348..b425eec5f6d6a 100644
--- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -205,7 +205,7 @@ PerfJITEventListener::PerfJITEventListener()
Dumpstream = std::make_unique<raw_fd_ostream>(DumpFd, true);
- LLVMPerfJitHeader Header = {0};
+ LLVMPerfJitHeader Header = {0, 0, 0, 0, 0, 0, 0, 0};
if (!FillMachine(Header))
return;
More information about the llvm-commits
mailing list