From d900b755ed003967d1c9675b62293414831db1b6 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 21 Oct 2020 17:45:51 +0200 Subject: [PATCH] [lldb] Fix windows build for fa5fa63fd140f --- lldb/tools/lldb-server/lldb-gdbserver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/tools/lldb-server/lldb-gdbserver.cpp b/lldb/tools/lldb-server/lldb-gdbserver.cpp index 0fbb138..9b8c67a 100644 --- a/lldb/tools/lldb-server/lldb-gdbserver.cpp +++ b/lldb/tools/lldb-server/lldb-gdbserver.cpp @@ -451,10 +451,12 @@ int main_gdbserver(int argc, char *argv[]) { reverse_connect = Args.hasArg(OPT_reverse_connect); attach_target = Args.getLastArgValue(OPT_attach).str(); if (Args.hasArg(OPT_pipe)) { - if (!llvm::to_integer(Args.getLastArgValue(OPT_pipe), unnamed_pipe)) { + uint64_t Arg; + if (!llvm::to_integer(Args.getLastArgValue(OPT_pipe), Arg)) { WithColor::error() << "invalid '--pipe' argument\n" << HelpText; return 1; } + unnamed_pipe = (pipe_t)Arg; } if (Args.hasArg(OPT_fd)) { if (!llvm::to_integer(Args.getLastArgValue(OPT_fd), connection_fd)) { -- 2.7.4