summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorKiran Chandramohan <kiran.chandramohan@arm.com>2021-12-13 16:11:32 +0000
committerKiran Chandramohan <kiran.chandramohan@arm.com>2021-12-13 16:12:01 +0000
commitf97731c76501788c61012156adfae138f4013500 (patch)
treeb16dd239d99d0647928c0bd52f8c49a55b9d10a4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentb8c12af9dd761c5118b70b1e2952e6c1a63628a8 (diff)
[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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions