summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Value.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-11-02 21:35:26 +0000
committerPavel Labath <labath@google.com>2017-11-02 21:35:26 +0000
commiteac00c3be67ffaf831bedabaeb1b558f49c4cec8 (patch)
tree708a17d065a0334fa16ece717f1acfc2ea76a418 /lldb/source/Core/Value.cpp
parent1d02b13eb7758844adb9f1cec0828376f10d365a (diff)
downloadbcm5719-llvm-eac00c3be67ffaf831bedabaeb1b558f49c4cec8.tar.gz
bcm5719-llvm-eac00c3be67ffaf831bedabaeb1b558f49c4cec8.zip
Fix some warnings found by ToT clang
These fall into two categories: - unused variables - (uint8_t *)NULL + X -- changed to reinterpret_cast(X) llvm-svn: 317270
Diffstat (limited to 'lldb/source/Core/Value.cpp')
-rw-r--r--lldb/source/Core/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Value.cpp b/lldb/source/Core/Value.cpp
index 3f0f9ea576b..9eb5a491653 100644
--- a/lldb/source/Core/Value.cpp
+++ b/lldb/source/Core/Value.cpp
@@ -535,7 +535,7 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
"trying to read from host address of 0.");
return error;
}
- memcpy(dst, (uint8_t *)NULL + address, byte_size);
+ memcpy(dst, reinterpret_cast<uint8_t *>(address), byte_size);
} else if ((address_type == eAddressTypeLoad) ||
(address_type == eAddressTypeFile)) {
if (file_so_addr.IsValid()) {
OpenPOWER on IntegriCloud