This is an archive of the discontinued LLVM Phabricator instance.

[GlobalOpt] Check stored once value's type before setting global initializer
ClosedPublic

Authored by aeubanks on Aug 17 2021, 12:05 PM.

Details

Summary

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.

Diff Detail

Event Timeline

aeubanks created this revision.Aug 17 2021, 12:05 PM
aeubanks requested review of this revision.Aug 17 2021, 12:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2021, 12:05 PM

seems to be caused by D106589

rnk accepted this revision.Aug 17 2021, 1:35 PM

lgtm

This revision is now accepted and ready to land.Aug 17 2021, 1:35 PM