From 8465c38b1ecdb44eac9139a255f17eaae243b755 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 6 Dec 2017 19:21:09 +0000 Subject: [PATCH] Use a static_cast instead of a C cast, NFC Pointed out by Davide Italiano in post-commit review. llvm-svn: 319935 --- .../DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index 961a79587dca..a81a0306671e 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -1407,7 +1407,7 @@ bool DynamicLoaderDarwinKernel::ReadAllKextSummaries() { void DynamicLoaderDarwinKernel::KextImageInfo::PutToLog(Log *log) const { if (log == NULL) return; - const uint8_t *u = (const uint8_t *)m_uuid.GetBytes(); + const uint8_t *u = static_cast(m_uuid.GetBytes()); if (m_load_address == LLDB_INVALID_ADDRESS) { if (u) {