[all-commits] [llvm/llvm-project] a89fb2: [clang][ItaniumMangle] Check SizeExpr for Dependen...

Tommy Chiang via All-commits all-commits at lists.llvm.org
Fri Apr 2 00:34:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a89fb29398dc0ce48dfe6f45f99d6ae7df4c6b46
      https://github.com/llvm/llvm-project/commit/a89fb29398dc0ce48dfe6f45f99d6ae7df4c6b46
  Author: oToToT <ty1208chiang at gmail.com>
  Date:   2021-04-02 (Fri, 02 Apr 2021)

  Changed paths:
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/unittests/AST/DeclTest.cpp

  Log Message:
  -----------
  [clang][ItaniumMangle] Check SizeExpr for DependentSizedArrayType
(PR49478)

As ArrayType::ArrayType mentioned in clang/lib/AST/Type.cpp, a
DependentSizedArrayType might not have size expression because it it
used as the type of a dependent array of unknown bound with a dependent
braced initializer.

Thus, I add a check when mangling array of that type.

This should fix https://bugs.llvm.org/show_bug.cgi?id=49478

Reviewed By: Richard Smith - zygoloid

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




More information about the All-commits mailing list