Go to file
Nathan Lanza a0d52cbdc9 Add a check whether or not a str is utf8 prior to emplacing
Summary:
Highlighing junk data on VSCode can send a query for evaluate which
fails. In particular cases on Windows, this the error message can end
up as a c-string of [-35,-35,-35,-35,...]. Attempting to emplace this
as the error message causes an assert failure.

Prior to emplacing the error message, confirm that it is valid UTF8 to
eliminate errors such as mentione above.

Reviewers: xiaobai, clayborg

Reviewed By: clayborg

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

llvm-svn: 346988
2018-11-15 19:49:57 +00:00
clang [AST] Store the string data in StringLiteral in a trailing array of chars 2018-11-15 17:31:16 +00:00
clang-tools-extra [clang-tidy] Update checks to play nicely with limited traversal scope added in r346847 2018-11-15 15:06:11 +00:00
compiler-rt Start adding the supporting code to perform out-of-process allocator 2018-11-15 14:20:28 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc r600: Add datalayout to image builtin implementation 2018-11-10 21:43:40 +00:00
libcxx Upgrade Google Benchmark library to ToT 2018-11-15 19:22:53 +00:00
libcxxabi [CMake] Passthrough CFLAGS when checking the compiler-rt path 2018-11-14 00:09:26 +00:00
libunwind [CMake] Passthrough CFLAGS when checking the compiler-rt path 2018-11-14 00:09:26 +00:00
lld [WebAssembly] Import the stack pointer when building shared libraries 2018-11-15 18:15:54 +00:00
lldb Add a check whether or not a str is utf8 prior to emplacing 2018-11-15 19:49:57 +00:00
llgo
llvm [ADT] Drop llvm::Optional clang-specific optmization for trivially copyable types 2018-11-15 19:32:24 +00:00
openmp Fix for bugzilla https://bugs.llvm.org/show_bug.cgi?id=39137. 2018-11-14 13:49:41 +00:00
parallel-libs
polly [CMake] Fix generation of exported targets in build directory 2018-11-06 15:18:17 +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.