Use a static_cast instead of a C cast, NFC
authorVedant Kumar <vsk@apple.com>
Wed, 6 Dec 2017 19:21:09 +0000 (19:21 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 6 Dec 2017 19:21:09 +0000 (19:21 +0000)
Pointed out by Davide Italiano in post-commit review.

llvm-svn: 319935

lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp

index 961a79587dca0853f7e4bdce0fbc8f4246399d5e..a81a0306671e1bb407bdf3c6eec261984169c977 100644 (file)
@@ -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<const uint8_t *>(m_uuid.GetBytes());
 
   if (m_load_address == LLDB_INVALID_ADDRESS) {
     if (u) {