Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
b8c12af
commit f97731c
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters