[all-commits] [llvm/llvm-project] 16890e: [GlobalOpt] Check stored once value's type before ...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Aug 17 14:39:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16890e004085454b573d81cce9734b74175ac0b0
      https://github.com/llvm/llvm-project/commit/16890e004085454b573d81cce9734b74175ac0b0
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    A llvm/test/Transforms/GlobalOpt/stored-once-value-type.ll

  Log Message:
  -----------
  [GlobalOpt] Check stored once value's type before setting global initializer

In the provided test case, we were trying to set the global's
initializer to `i32* null` when the global's value type was `@0`.

Reviewed By: rnk

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




More information about the All-commits mailing list