diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2020-01-07 12:13:03 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2020-01-07 13:03:56 +0100 |
| commit | 65fdb34219f33b2871a532a38814ac4ebea10abc (patch) | |
| tree | 5ddc3e81290641e13302734ec37030f3013ca77d /lldb/source/API | |
| parent | 14cd4a5b32478f76b9fa58825b7c92ba0dd5bc2b (diff) | |
| download | bcm5719-llvm-65fdb34219f33b2871a532a38814ac4ebea10abc.tar.gz bcm5719-llvm-65fdb34219f33b2871a532a38814ac4ebea10abc.zip | |
[lldb][NFC] Use static_cast instead of reinterpret_cast where possible
Summary: There are a few places in LLDB where we do a `reinterpret_cast` for conversions that we could also do with `static_cast`. This patch moves all this code to `static_cast`.
Reviewers: shafik, JDevlieghere, labath
Reviewed By: labath
Subscribers: arphaman, usaxena95, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D72161
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/SBEvent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBEvent.cpp b/lldb/source/API/SBEvent.cpp index 75ca2830df9..fb2ad10ddcf 100644 --- a/lldb/source/API/SBEvent.cpp +++ b/lldb/source/API/SBEvent.cpp @@ -175,7 +175,7 @@ const char *SBEvent::GetCStringFromEvent(const SBEvent &event) { LLDB_RECORD_STATIC_METHOD(const char *, SBEvent, GetCStringFromEvent, (const lldb::SBEvent &), event); - return reinterpret_cast<const char *>( + return static_cast<const char *>( EventDataBytes::GetBytesFromEvent(event.get())); } |

