[all-commits] [llvm/llvm-project] 18439c: [mlir][LLVMIR] Fix identified structs with same name

aengelke via All-commits all-commits at lists.llvm.org
Fri Jul 28 09:15:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18439cfc14fe35884e75761819a63763d03fe46c
      https://github.com/llvm/llvm-project/commit/18439cfc14fe35884e75761819a63763d03fe46c
  Author: Alexis Engelke <engelke at in.tum.de>
  Date:   2023-07-28 (Fri, 28 Jul 2023)

  Changed paths:
    M mlir/lib/Target/LLVMIR/TypeFromLLVM.cpp
    A mlir/test/Target/LLVMIR/Import/global-struct.ll

  Log Message:
  -----------
  [mlir][LLVMIR] Fix identified structs with same name

Different identified struct types may have the same name ("").
Previously, these were deduplicated based on their name, which caused
an assertion failure when nesting identified structs:

    %0 = type { %1 }
    %1 = type { i8 }
    declare void @fn(%0)

Reviewed By: gysit

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




More information about the All-commits mailing list