[all-commits] [llvm/llvm-project] f2d5fc: [clang] fixes named return of variables with depen...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Jul 6 17:55:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2d5fce86e81a8b37fbc0829a1c68b6eb48f8365
      https://github.com/llvm/llvm-project/commit/f2d5fce86e81a8b37fbc0829a1c68b6eb48f8365
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/lib/AST/Decl.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaStmt.cpp
    M clang/test/CXX/class/class.init/class.copy.elision/p3.cpp
    M clang/test/CodeGen/nrvo-tracking.cpp

  Log Message:
  -----------
  [clang] fixes named return of variables with dependent alignment

Named return of a variable with aligned attribute would
trip an assert in case alignment was dependent.

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>

Reviewed By: rsmith

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




More information about the All-commits mailing list