[flang] Use value or * instead of getValue (NFC)
authorKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 06:01:01 +0000 (23:01 -0700)
committerKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 06:01:01 +0000 (23:01 -0700)
commit3356d72a5ffa69324f8fdbc067c440cda8154797
treeca36a50b5dd2935b87a4af4cfdeaaa5435ee35ae
parent3f3930a451e118e82885a6dd20e3918427b816c2
[flang] Use value or * instead of getValue (NFC)

This patch replaces x.getValue() with *x if the reference is obviously
protected by a presence check.  Otherwise, it replaces x.getValue()
with x.value().
flang/lib/Lower/Bridge.cpp
flang/lib/Optimizer/Transforms/AffinePromotion.cpp