summaryrefslogtreecommitdiffstats
path: root/lldb/tools/darwin-debug/darwin-debug.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-07-17 03:23:13 +0000
committerGreg Clayton <gclayton@apple.com>2012-07-17 03:23:13 +0000
commit23f59509a8790b04c691ec063c55724a3bfee7eb (patch)
tree9bd1537b53423b7a43ccd4b9bceb178960bbbb02 /lldb/tools/darwin-debug/darwin-debug.cpp
parent24a8378c4f5ab46f9156e8c271500a6e051c2fd4 (diff)
downloadbcm5719-llvm-23f59509a8790b04c691ec063c55724a3bfee7eb.tar.gz
bcm5719-llvm-23f59509a8790b04c691ec063c55724a3bfee7eb.zip
Ran the static analyzer on the codebase and found a few things.
llvm-svn: 160338
Diffstat (limited to 'lldb/tools/darwin-debug/darwin-debug.cpp')
-rw-r--r--lldb/tools/darwin-debug/darwin-debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/darwin-debug/darwin-debug.cpp b/lldb/tools/darwin-debug/darwin-debug.cpp
index a3306a53e02..1fe2e5948ff 100644
--- a/lldb/tools/darwin-debug/darwin-debug.cpp
+++ b/lldb/tools/darwin-debug/darwin-debug.cpp
@@ -164,6 +164,7 @@ posix_spawn_for_debug
int main (int argc, char *const *argv, char *const *envp, const char **apple)
{
+#if defined (DEBUG_LLDB_LAUNCHER)
const char *program_name = strrchr(apple[0], '/');
if (program_name)
@@ -171,7 +172,6 @@ int main (int argc, char *const *argv, char *const *envp, const char **apple)
else
program_name = apple[0];
-#if defined (DEBUG_LLDB_LAUNCHER)
printf("%s called with:\n", program_name);
for (int i=0; i<argc; ++i)
printf("argv[%u] = '%s'\n", i, argv[i]);
OpenPOWER on IntegriCloud