[llvm] bdf26d8 - [ORC] Remove designated initializer.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 22:12:44 PST 2020
Author: Lang Hames
Date: 2020-11-13T17:12:33+11:00
New Revision: bdf26d8d193576dd9d07ca698e5bb62891bf16ec
URL: https://github.com/llvm/llvm-project/commit/bdf26d8d193576dd9d07ca698e5bb62891bf16ec
DIFF: https://github.com/llvm/llvm-project/commit/bdf26d8d193576dd9d07ca698e5bb62891bf16ec.diff
LOG: [ORC] Remove designated initializer.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp b/llvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp
index 0b77eac8b4a6..52d11f0741d4 100644
--- a/llvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp
@@ -17,7 +17,8 @@ namespace orc {
namespace tpctypes {
WrapperFunctionResult WrapperFunctionResult::from(StringRef S) {
- CWrapperFunctionResult R = {0, {.ValuePtr = nullptr}, nullptr};
+ CWrapperFunctionResult R;
+ zeroInit(R);
R.Size = S.size();
if (R.Size > sizeof(uint64_t)) {
R.Data.ValuePtr = new uint8_t[R.Size];
More information about the llvm-commits
mailing list