Go to file
Nathan Lanza e71679082c add a workaround in GetLine to account for ReadFile not reporintg error
Summary:
ReadFile on Windows is supposed to set ERROR_OPERATION_ABORTED according
to the docs on MSDN. However, this has evidently been a known bug since
Windows 8. Therefore, we can't detect if a signal interrupted in the
fgets. So pressing ctrl-c causes the repl to end and the process to
exit. A temporary workaround is just to attempt to fgets twice until
this bug is fixed.

A possible alternative would be to set a flag in the `sigint_handler`
and simply check that flag in the true part of the if statement.
However, signal handlers on Windows are asynchronous and this would
require sleeping on the repl loop thread while still not necessarily
guarnateeing that you caught the sigint.

Reviewers: jfb

Differential Revision: https://reviews.llvm.org/D64660

llvm-svn: 366281
2019-07-16 23:01:59 +00:00
clang Fix a typo in target features 2019-07-16 22:32:17 +00:00
clang-tools-extra [clang-tidy] initial version of readability-convert-member-functions-to-static 2019-07-16 21:19:00 +00:00
compiler-rt [TSan] Improve handling of stack pointer mangling in {set,long}jmp, pt.6 2019-07-16 20:41:04 +00:00
debuginfo-tests Make nrvo-string test more robust. 2019-06-27 20:38:37 +00:00
libclc travis: Add LLVM-8 build 2019-03-27 21:28:31 +00:00
libcxx [libcxx] Rejigger test for destroying delete feature-test macros 2019-07-16 21:13:40 +00:00
libcxxabi [libcxxabi] Don't process exceptions in cxa_handlers when they're disabled 2019-07-12 19:10:59 +00:00
libunwind [libunwind] Fix Unwind-EHABI.cpp:getByte on big-endian targets 2019-07-09 15:29:06 +00:00
lld Add REQUIRES: x86 to safeseh-no.s test for x86 2019-07-16 22:01:30 +00:00
lldb add a workaround in GetLine to account for ReadFile not reporintg error 2019-07-16 23:01:59 +00:00
llgo IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
llvm ARM: Fix missing immarg for space intrinsic 2019-07-16 22:41:38 +00:00
openmp [OpenMP] Move header inclusion out of 'extern "C"' 2019-07-16 17:16:43 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly [NFC][ScopBuilder] Move addUserContext to ScopBuilder 2019-07-16 21:29:06 +00:00
pstl [pstl] Use std::transform_reduce instead of hand-rolled implementation 2019-07-16 17:29:09 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
.gitignore Add a reduced copy of the llvm .gitignore 2019-04-09 00:52:49 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.