[all-commits] [llvm/llvm-project] 3013a9: CoroFrame: Fix missing bitcast for some frame merges

Matthias Braun via All-commits all-commits at lists.llvm.org
Mon Jan 23 15:31:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3013a94894d5c1de808f0da638b1f921f31a697a
      https://github.com/llvm/llvm-project/commit/3013a94894d5c1de808f0da638b1f921f31a697a
  Author: Matthias Braun <matze at braunis.de>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp

  Log Message:
  -----------
  CoroFrame: Fix missing bitcast for some frame merges

The code to adjust types when merging fields on the coroutine frame
accidentally used `GetElementPtrInst::getResultElementType()` which does
the return the type the resulting pointer points to (so misses a pointer
type). This worked most of the time by accident because the type nearly
never matched, but failed to add a necessary bitcast for from `i8**` to
`i8*`.

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




More information about the All-commits mailing list