[flang] Fixed unittest build issue with older gcc.
authorSlava Zakharin <szakharin@nvidia.com>
Thu, 19 Jan 2023 02:10:09 +0000 (18:10 -0800)
committerSlava Zakharin <szakharin@nvidia.com>
Thu, 19 Jan 2023 03:20:57 +0000 (19:20 -0800)
commit26f83b43b16a6efde8769d4bdf12779ffd8ef874
treeef5912b6ed61f8a6b1c1bd3fdf74a786223f8909
parentb2bdb0ba0f6d331844c1b9dcccd522472c7188c9
[flang] Fixed unittest build issue with older gcc.

I am getting this error with `check-flang`:
```
ld.lld: error: undefined symbol: mlir::SuccessorRange::SuccessorRange(mlir::Operation*)
>>> referenced by Operation.h:549 (/llvm-project/llvm/../mlir/include/mlir/IR/Operation.h:549)
>>>               CMakeFiles/FlangRuntimeTests.dir/Allocatable.cpp.o:(mlir::Operation::getSuccessors())
```

The buildbots are okay, so I guess it has something to do with
gcc-9 that I am using.

Differential Revision: https://reviews.llvm.org/D142069
flang/unittests/Runtime/Allocatable.cpp