[PATCH] D149612: [Sema] avoid merge error type

Congcong Cai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 17:11:20 PDT 2023


HerrCai0907 added a comment.

in SemaType.cpp#BuildArrayType, It will generate `DependentSizedArrayType` which cannot be merged. 
So we can either add additional check in `MergeVarDeclTypes` or directly ignore to generate this type in `BuildArrayType`.
Which one is better?

  } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) {
    T = Context.getDependentSizedArrayType(T, ArraySize, ASM, Quals, Brackets);




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149612/new/

https://reviews.llvm.org/D149612



More information about the cfe-commits mailing list