[all-commits] [llvm/llvm-project] 7ce98c: [GlobalOpt] Fix the assert for stored once non-poi...

Shimin Cui via All-commits all-commits at lists.llvm.org
Mon Aug 2 16:24:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ce98cf56e3ea9c8dd8d55f6f61b1bed9de4c70a
      https://github.com/llvm/llvm-project/commit/7ce98cf56e3ea9c8dd8d55f6f61b1bed9de4c70a
  Author: Shimin Cui <scui at ca.ibm.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    A llvm/test/Transforms/GlobalOpt/2021-08-02-CastStoreOnceP2I.ll

  Log Message:
  -----------
  [GlobalOpt] Fix the assert for stored once non-pointer to global address

This is to fix the assert @bjope reported due to the code change of https://reviews.llvm.org/D106589. The test case from @bjope is also included.

Reviewed By: efriedma

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




More information about the All-commits mailing list