summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
diff options
context:
space:
mode:
authorSergio Afonso <safonsof@amd.com>2025-01-14 16:08:38 +0000
committerGitHub <noreply@github.com>2025-01-14 16:08:38 +0000
commit0fb0ac708a581e795c78b7838e10305d80a25c67 (patch)
tree6ebc0c4bed2bca32bef557c0ded689d69d3a0cb5 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
parentf1b1c7f3c18c1b75b620a968746346b1a1d94ce3 (diff)
[OMPIRBuilder] Simplify error handling while emitting target calls, NFC (#122477)
The OMPIRBuilder uses `llvm::Error`s to allow callbacks passed to it to signal errors and prevent OMPIRBuilder functions to continue after one has been triggered. This means that OMPIRBuilder functions taking callbacks needs to be able to forward these errors, which must always be checked. However, in cases where these functions are called from within the OMPIRBuilder with callbacks also defined inside of it, it can be known in advance that no errors will be produced. This is the case of those defined in `emitTargetCall`. This patch introduces calls to the `cantFail` function instead of the previous superfluous checks that still assumed calls wouldn't fail, making these assumptions more obvious and simplifying their implementation.
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions