aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2024-08-22 10:08:04 +0100
committerGitHub <noreply@github.com>2024-08-22 10:08:04 +0100
commit00a1a45a7dcdcd8b1f969958a6d927b595567090 (patch)
tree51df0cf1464bb098eaf83ec343f2bccd19caf51b /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
parent1e44e7afd799f582171a79355ce353fde134e806 (diff)
downloadllvm-00a1a45a7dcdcd8b1f969958a6d927b595567090.zip
llvm-00a1a45a7dcdcd8b1f969958a6d927b595567090.tar.gz
llvm-00a1a45a7dcdcd8b1f969958a6d927b595567090.tar.bz2
[mlir][llvmir][debug] Correctly generate location for phi nodes. (#105534)
In [convertBlockImpl](https://github.com/llvm/llvm-project/blob/87eeed1f0ebe57abffde560c25dd9829dc6038f3/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp#L959), the debug location is set on the builder before the op is processed. This results in correct location being given to corresponding llvm instructions. But same is not done when phi nodes are created a few lines above. This result is phi nodes getting whatever the current debug location of the builder is. It can be nothing or in worst case a stale location. Fixed by calling SetCurrentDebugLocation before generating phi nodes.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions