[all-commits] [llvm/llvm-project] d68872: [AutoUpgrade] Don't upgrade intrinsics returning o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Mar 30 08:27:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6887256c2cae1b1b721bd47459be6d86003db6f
      https://github.com/llvm/llvm-project/commit/d6887256c2cae1b1b721bd47459be6d86003db6f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-30 (Wed, 30 Mar 2022)

  Changed paths:
    M llvm/lib/IR/AutoUpgrade.cpp
    A llvm/test/Assembler/struct-ret-without-upgrade.ll

  Log Message:
  -----------
  [AutoUpgrade] Don't upgrade intrinsics returning overloaded struct type

We only want to do the upgrade from named to anonymous struct
return if the intrinsic is declared to return a struct, but not
if it has an overloaded return type that just happens to be a
struct. In that case the struct type will be mangled into the
intrinsic name and there is no problem.

This should address the problem reported in
https://reviews.llvm.org/D122471#3416598.




More information about the All-commits mailing list