[IPO] Restore a call to has_value (NFC)
authorKazu Hirata <kazu@google.com>
Wed, 20 Jul 2022 16:40:18 +0000 (09:40 -0700)
committerKazu Hirata <kazu@google.com>
Wed, 20 Jul 2022 16:40:18 +0000 (09:40 -0700)
commit94e03abf91d5dafd4a466b76dd85588335937028
tree9897299918c1c58083a4abdcc6ec8cacd5de30a2
parent857a78c04deeb17cbea63224b9705710c42e97f6
[IPO] Restore a call to has_value (NFC)

This patch restores a call to has_value to make it clear that we are
checking the presence of an optional value, not the underlying value.

This patch partially reverts d08f34b592ff06ccb1f36da88ec09aa926427a4d.

Differential Revision: https://reviews.llvm.org/D129453
llvm/include/llvm/Transforms/IPO/Attributor.h