forked from OSchip/llvm-project
[lldb] Explicitly qualify calls to std::static_pointer_cast
Due to a c++ quirk, these are found through ADL only when a function with that name is found through regular lookup. We have one such function in SharingPtr.h, but I am trying to remove it.
This commit is contained in:
parent
17d0091d66
commit
31cf581998
|
@ -30,14 +30,14 @@ public:
|
|||
llvm::StringRef GetOutputData() {
|
||||
lldb::StreamSP stream_sp(m_out_stream.GetStreamAtIndex(eStreamStringIndex));
|
||||
if (stream_sp)
|
||||
return static_pointer_cast<StreamString>(stream_sp)->GetString();
|
||||
return std::static_pointer_cast<StreamString>(stream_sp)->GetString();
|
||||
return llvm::StringRef();
|
||||
}
|
||||
|
||||
llvm::StringRef GetErrorData() {
|
||||
lldb::StreamSP stream_sp(m_err_stream.GetStreamAtIndex(eStreamStringIndex));
|
||||
if (stream_sp)
|
||||
return static_pointer_cast<StreamString>(stream_sp)->GetString();
|
||||
return std::static_pointer_cast<StreamString>(stream_sp)->GetString();
|
||||
return llvm::StringRef();
|
||||
}
|
||||
|
||||
|
|
|
@ -3479,7 +3479,7 @@ GDBRemoteCommunicationClient::SendGetTraceConfigPacket(lldb::user_id_t uid,
|
|||
return error;
|
||||
} else
|
||||
options.setTraceParams(
|
||||
static_pointer_cast<StructuredData::Dictionary>(
|
||||
std::static_pointer_cast<StructuredData::Dictionary>(
|
||||
custom_params_sp));
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -1072,7 +1072,7 @@ GDBRemoteCommunicationServerLLGS::Handle_jTraceStart(
|
|||
return SendIllFormedResponse(packet, "jTraceStart: Ill formed packet ");
|
||||
|
||||
options.setTraceParams(
|
||||
static_pointer_cast<StructuredData::Dictionary>(custom_params_sp));
|
||||
std::static_pointer_cast<StructuredData::Dictionary>(custom_params_sp));
|
||||
|
||||
if (buffersize == std::numeric_limits<uint64_t>::max() ||
|
||||
type != lldb::TraceType::eTraceTypeProcessorTrace) {
|
||||
|
|
Loading…
Reference in New Issue