llvm-project/flang/unittests/Optimizer
Kiran Chandramohan f97731c765 [Flang][Unit Test] Move the declaration of kindMap to the class
kindMap variable is declared in the Setup function but passed as
a reference to the firBuilder class. The firBuilder is declared in
the class and hence its lifetime exceeds that of kindMap. This can
lead to undefined behaviour. Move the kindMap variable into the class
to avoid this.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D115631
2021-12-13 16:12:01 +00:00
..
Builder [Flang][Unit Test] Move the declaration of kindMap to the class 2021-12-13 16:12:01 +00:00
CMakeLists.txt [fir] Add fir ragged array builder 2021-12-08 17:28:43 +01:00
FIRContextTest.cpp [flang][fir] Update flang test tool support classes. 2021-02-19 16:02:39 -08:00
InternalNamesTest.cpp [fir][NFC] Add two negative tests for needExternalNameMangling 2021-10-12 09:25:23 +02:00
KindMappingTest.cpp [flang][fir] Update flang test tool support classes. 2021-02-19 16:02:39 -08:00
RTBuilder.cpp [fir] Split FIROptimizer lib into several smaller libraries 2021-10-05 14:02:32 +02:00