diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2024-10-29 14:15:43 +0900 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2024-10-29 14:18:24 +0900 |
commit | 828467a54e156cbb04820ae47df32c45fbc75fc0 (patch) | |
tree | b7345c77a414d384a41614341a32165fe19c7148 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 6588073724d3241d90663e45154d806a28bce95a (diff) | |
download | llvm-828467a54e156cbb04820ae47df32c45fbc75fc0.zip llvm-828467a54e156cbb04820ae47df32c45fbc75fc0.tar.gz llvm-828467a54e156cbb04820ae47df32c45fbc75fc0.tar.bz2 |
Fix warnings introduced in #111434 [-Wnontrivial-memaccess]
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index f099753..42622ea 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -1056,7 +1056,7 @@ void ExecutionEngine::StoreValueToMemory(const GenericValue &Val, *((double*)Ptr) = Val.DoubleVal; break; case Type::X86_FP80TyID: - memcpy(Ptr, Val.IntVal.getRawData(), 10); + memcpy(static_cast<void *>(Ptr), Val.IntVal.getRawData(), 10); break; case Type::PointerTyID: // Ensure 64 bit target pointers are fully initialized on 32 bit hosts. |