Go to file
Nirav Dave 670109d89a [MC] Fix compiler crash in AsmParser::Lex
When an empty comment is present in an assembly file, the compiler will crash because it checks the first character for '\n' or '\r'.
The fix consists of also checking if the string is empty before accessing the *front* method of the StringRef.
A test is included for the x86 target, but this issue is reproducible with other targets as well.

Patch by Alexandru Guduleasa!

Reviewers: niravd, grosbach, llvm-commits

Reviewed By: niravd

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

llvm-svn: 305077
2017-06-09 14:04:03 +00:00
clang [DebugInfo] Fix comment, NFC. 2017-06-09 13:55:08 +00:00
clang-tools-extra [clang-tools-extra] ReleaseNotes.rst: test commit: whitespace fix 2017-06-09 12:00:04 +00:00
compiler-rt [asan] Fix ASan internal failure in AllocateFromLocalPool 2017-06-09 07:47:38 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx [libcxx] [test] Update locale names for Windows. 2017-06-08 18:22:03 +00:00
libcxxabi [libcxxabi] HandleLLVMOptions in out of tree build 2017-06-03 17:23:19 +00:00
libunwind [libunwind] Fix executable stack directive on Linux. 2017-05-16 20:18:57 +00:00
lld [ELF] - Simplify gdb-index-empty.s 2017-06-09 13:30:36 +00:00
lldb Skip TestNoreturnUnwind on linux+clang+arm 2017-06-09 08:33:59 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [MC] Fix compiler crash in AsmParser::Lex 2017-06-09 14:04:03 +00:00
openmp Fix static initializers for locks. 2017-06-06 20:24:41 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [Polly] [ScopDetection] Allow passing multiple functions to `-polly-only-func`. 2017-06-09 08:23:40 +00:00