[Lldb-commits] [lldb] r319935 - Use a static_cast instead of a C cast, NFC
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 6 11:21:09 PST 2017
Author: vedantk
Date: Wed Dec 6 11:21:09 2017
New Revision: 319935
URL: http://llvm.org/viewvc/llvm-project?rev=319935&view=rev
Log:
Use a static_cast instead of a C cast, NFC
Pointed out by Davide Italiano in post-commit review.
Modified:
lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp?rev=319935&r1=319934&r2=319935&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Wed Dec 6 11:21:09 2017
@@ -1407,7 +1407,7 @@ bool DynamicLoaderDarwinKernel::ReadAllK
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<const uint8_t *>(m_uuid.GetBytes());
if (m_load_address == LLDB_INVALID_ADDRESS) {
if (u) {
More information about the lldb-commits
mailing list