[Flang] Fix usage of uninitialized resolution variable
authorPaul Scoropan <1paulscoropan@gmail.com>
Wed, 5 Apr 2023 14:31:16 +0000 (14:31 +0000)
committerPaul Scoropan <1paulscoropan@gmail.com>
Wed, 5 Apr 2023 15:00:56 +0000 (15:00 +0000)
commit6da1f2277dd1fbd560204c6ab0e129eb3cb0906b
tree9a17c9f5c48c662b729d9df5101483e1ae99e62b
parent9f22401a59f8eee46e7134d38a11c6d6161c7b5a
[Flang] Fix usage of uninitialized resolution variable

Recent Flang PowerPC intrinsics patch used resolution variable without checking if it exists first, causing segmentation faults in some scenarios. This patch checks that the resolution variable exists first before usage.

Reviewed By: DanielCChen

Differential Revision: https://reviews.llvm.org/D147616
flang/lib/Semantics/expression.cpp