[GlobalOpt] Drop an incorrect check
authorNikita Popov <npopov@redhat.com>
Mon, 17 Jan 2022 09:09:44 +0000 (10:09 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 17 Jan 2022 09:10:56 +0000 (10:10 +0100)
commit12bee2c0542460db8080a8630b139953207846cf
tree82d1927659a68897922b34f63b1d862d2cd434eb
parent499f1ca79f232faae09b1793a994d1a22ba403cd
[GlobalOpt] Drop an incorrect check

This was a last-minute addition to D117249, and of course I ended
up inverting the condition in a way that caused an uninitialized
memory read.

I've dropped it entirely, as I don't think we actually care whether
the size is zero or not here. The previous code wasn't checking
this either.
llvm/lib/Transforms/IPO/GlobalOpt.cpp