[all-commits] [llvm/llvm-project] 50a81e: Don't apply lvalue-to-rvalue conversion in Default...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Wed May 13 20:12:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 50a81ea2bce3aec01ae6fae1505e57ec7aa36ac7
      https://github.com/llvm/llvm-project/commit/50a81ea2bce3aec01ae6fae1505e57ec7aa36ac7
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaStmt.cpp
    M clang/test/CXX/expr/p10-0x.cpp
    M clang/test/SemaCXX/warn-unused-value-cxx11.cpp

  Log Message:
  -----------
  Don't apply lvalue-to-rvalue conversion in DefaultLValueConversion to
the expression that is passed to it if it has a function type or array
type

lvalue-to-rvalue conversion should only be applied to non-function,
non-array types, but clang was applying the conversion to discarded
value expressions of array types.

rdar://problem/61203170

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




More information about the All-commits mailing list