[flang] Avoid crash in statement function error case
The predicate IsPureProcedure() crashes with infinite recursion when presented with mutually recursive statement functions -- an error case that should be recoverable. Fix by adding a visited set. Fixes bug https://github.com/llvm/llvm-project/issues/63231 Differential Revision: https://reviews.llvm.org/D153569
Loading
Please sign in to comment