Go to file
Vedant Kumar f4217f862a [Sema] Add lvalue-to-rvalue cast in direct-list-initialization of enum
After r264564, we allowed direct-list-initialization of an enum from an
integral value in C++1z mode, so long as that value can convert to the
enum's underlying type.

In this kind of initialization, we need a lvalue-to-rvalue conversion
for the initializer value if it is not a rvalue. This lets us accept the
following code:

  enum class A : unsigned {};
  A foo(unsigned x) { return A{x}; }

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

llvm-svn: 295266
2017-02-16 01:20:00 +00:00
clang [Sema] Add lvalue-to-rvalue cast in direct-list-initialization of enum 2017-02-16 01:20:00 +00:00
clang-tools-extra [clang-tidy] Fix test modernize-return-braced-init-list 2017-02-15 17:37:58 +00:00
compiler-rt [Builtin][ARM] #ifdef ARM vfp tests and cpu_model_tests 2017-02-15 23:59:09 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Move BufferPtr into the block where it it being used 2017-02-12 21:33:49 +00:00
libcxx Add tests for noexcept functions 2017-02-13 22:44:39 +00:00
libcxxabi Fix couple of test failures when using the LIBCXXABI_SILENT_TERMINATE mode. 2017-02-15 13:43:05 +00:00
libunwind Revert "[libunwind][CMake] Use libc++ headers when available" 2017-02-15 17:15:41 +00:00
lld Addends should always be signed. 2017-02-16 00:12:34 +00:00
lldb Fix Xcode project. 2017-02-15 18:24:44 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm Rename variables to match the LLVM style. 2017-02-16 01:06:45 +00:00
openmp [OpenMP] libomptarget: Protect parent struct from being deallocated 2017-02-15 20:45:37 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Add forgotten unittests in previous commit. NFC. 2017-02-15 17:19:22 +00:00