Make lldb -Werror clean for -Wstring-conversion
Also found/fixed one bug identified by this warning in RenderScriptx86ABIFixups.cpp where a string literal was being used in an effort to provide a name for an instruction/register, but was instead being passed as the bool 'isVolatile' parameter. llvm-svn: 291198
This commit is contained in:
@@ -1599,12 +1599,7 @@ StructuredData::ArraySP ScriptInterpreterPython::OSPlugin_ThreadsInfo(
|
||||
// as the underlying typedef for uint* types, size_t, off_t and other values
|
||||
// change.
|
||||
|
||||
template <typename T> const char *GetPythonValueFormatString(T t) {
|
||||
assert(!"Unhandled type passed to GetPythonValueFormatString(T), make a "
|
||||
"specialization of GetPythonValueFormatString() to support this "
|
||||
"type.");
|
||||
return nullptr;
|
||||
}
|
||||
template <typename T> const char *GetPythonValueFormatString(T t) = delete;
|
||||
template <> const char *GetPythonValueFormatString(char *) { return "s"; }
|
||||
template <> const char *GetPythonValueFormatString(char) { return "b"; }
|
||||
template <> const char *GetPythonValueFormatString(unsigned char) {
|
||||
|
||||
Reference in New Issue
Block a user