summaryrefslogtreecommitdiffstats
path: root/lldb/tools/driver
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-01-06 00:38:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-01-06 00:38:06 +0000
commita322f36cfd7f2eb81b1527f2b4d786afdac4f7a4 (patch)
tree44c9dd582d0efc866da28073e2b34ee1fc8f736d /lldb/tools/driver
parent049b017538e44c20be1ef3f9d19d0bcb90284c4a (diff)
downloadbcm5719-llvm-a322f36cfd7f2eb81b1527f2b4d786afdac4f7a4.tar.gz
bcm5719-llvm-a322f36cfd7f2eb81b1527f2b4d786afdac4f7a4.zip
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
Diffstat (limited to 'lldb/tools/driver')
-rw-r--r--lldb/tools/driver/Platform.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/tools/driver/Platform.cpp b/lldb/tools/driver/Platform.cpp
index 1a58d4de03e..a9d1bee5ccf 100644
--- a/lldb/tools/driver/Platform.cpp
+++ b/lldb/tools/driver/Platform.cpp
@@ -34,9 +34,8 @@ int ioctl(int d, int request, ...) {
return 0;
} break;
default:
- assert(!"Not implemented!");
+ llvm_unreachable("Not implemented!");
}
- return -1;
}
int kill(pid_t pid, int sig) {
@@ -44,13 +43,11 @@ int kill(pid_t pid, int sig) {
if (pid == getpid())
exit(sig);
//
- assert(!"Not implemented!");
- return -1;
+ llvm_unreachable("Not implemented!");
}
int tcsetattr(int fd, int optional_actions, const struct termios *termios_p) {
- assert(!"Not implemented!");
- return -1;
+ llvm_unreachable("Not implemented!");
}
int tcgetattr(int fildes, struct termios *termios_p) {
OpenPOWER on IntegriCloud