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:
David Blaikie
2017-01-06 00:38:06 +00:00
parent 049b017538
commit a322f36cfd
26 changed files with 66 additions and 115 deletions

View File

@@ -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) {