Go to file
Pavel Labath f59056ff93 Fix assertion in ClangASTContext
Summary:
llvm::APSInt(0) asserts because it creates an int with bit-width 0 and
not (as I thought) a value 0.

Theoretically it should be sufficient to change this to APSInt(1), as
the intention there was that the value of the first argument should be
ignored if the type is invalid, but that would look dodgy.

Instead, I use llvm::Optional to denote an invalid value and use a
special struct instead of a std::pair, to reduce typing and increase
clarity.

Reviewers: clayborg

Subscribers: lldb-commits

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

llvm-svn: 319414
2017-11-30 10:16:54 +00:00
clang [CodeGen] Add initial support for union members in TBAA 2017-11-30 09:26:39 +00:00
clang-tools-extra [Documentation] Sort Clang-tidy changes next way: new modules, new checks, renamed checks, extended checks, new check aliases. 2017-11-29 22:17:39 +00:00
compiler-rt Linux needs to include sys/uio.h for readv, preadv 2017-11-30 09:22:12 +00:00
debuginfo-tests Re-revert "Refactor debuginfo-tests." 2017-11-21 01:20:28 +00:00
libclc configure.py: Add gfx900 (Vega, Raven) 2017-11-27 11:14:06 +00:00
libcxx Fix problems with r'890 when building on machines where sizeof(size_t) != sizeof(unsigned long long) and C++03 2017-11-27 22:27:22 +00:00
libcxxabi Insert padding before the __cxa_exception header to ensure the thrown 2017-11-28 00:36:29 +00:00
libunwind Support building libunwind as a DLL 2017-11-29 08:21:12 +00:00
lld Don't crash on invalid. 2017-11-30 06:18:31 +00:00
lldb Fix assertion in ClangASTContext 2017-11-30 10:16:54 +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 Revert rL319407: [SROA] enable splitting for non-whole-alloca loads and stores 2017-11-30 08:29:51 +00:00
openmp Make kmp_r_sched_t into a union 2017-11-29 22:47:52 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [polly] Set up .arcconfig to point to new Diffusion PLO repository 2017-11-27 17:34:03 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

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