[all-commits] [llvm/llvm-project] 3fa6ce: Fix MaterializeTemporaryExpr's type when its an in...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Jan 6 07:24:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fa6cedb6be809092f8a8b27e63bd4f6dc526a08
      https://github.com/llvm/llvm-project/commit/3fa6cedb6be809092f8a8b27e63bd4f6dc526a08
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2021-01-06 (Wed, 06 Jan 2021)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    A clang/test/AST/pr47636.cpp
    M clang/test/CodeGenCXX/pr47636.cpp

  Log Message:
  -----------
  Fix MaterializeTemporaryExpr's type when its an incomplete array.

Like the VarDecl that gets its type updated based on an init-list, this
patch corrects the MaterializeTemporaryExpr's type to make sure it isn't
creating an incomplete type, which leads to a handful of CodeGen crashes
(see PR 47636).

Based on @rsmith 's comments on D88236

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




More information about the All-commits mailing list