[all-commits] [llvm/llvm-project] 950c95: [coroutines] Get an IntegerType from the value ins...

Nathan Lanza via All-commits all-commits at lists.llvm.org
Mon Apr 25 11:11:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 950c95cfdd75a4a150148c9e0bc53f49b44e48bc
      https://github.com/llvm/llvm-project/commit/950c95cfdd75a4a150148c9e0bc53f49b44e48bc
  Author: Nathan Lanza <nathan at lanza.io>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

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

  Log Message:
  -----------
  [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit

This AliasPtr is being created always from an Int64 even for targets
where 32 bit is the proper type. e.g. “thumbv7-none-linux-android16”.
This causes the assert in the `get` func to fail as we're getting a 32
bit from the APInt.

Fix this by simply always just getting the type from the value instead.

Reviewed By: ChuanqiXu

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




More information about the All-commits mailing list