summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-05-02 18:53:53 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-05-02 18:53:53 +0000
commit6764b3e82a43bb1f8635c2841df76419d18919cc (patch)
treef3d5ee88b57e44e19fa0d2f1eaf76ee6212bb351 /lldb/source/Host
parent3ba81bdb45ad4a9ef603566a4ca222754649b43d (diff)
downloadbcm5719-llvm-6764b3e82a43bb1f8635c2841df76419d18919cc.tar.gz
bcm5719-llvm-6764b3e82a43bb1f8635c2841df76419d18919cc.zip
EOF is outside the value range of char on architectures with unsigned
char like ARM. Check for EOF explicitly. llvm-svn: 207859
Diffstat (limited to 'lldb/source/Host')
-rw-r--r--lldb/source/Host/common/Editline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index 8374d7721ca..f38f70bc40a 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -794,7 +794,7 @@ Editline::GetCharFromInputFileCallback (EditLine *e, char *c)
}
}
- if (ch == EOF)
+ if (status == eConnectionStatusEndOfFile)
{
editline->m_got_eof = true;
break;
OpenPOWER on IntegriCloud