diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2022-02-03 09:08:27 +0100 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2022-02-03 09:08:27 +0100 |
commit | 7a9e3ef77a3c4dc1cffb8ae768db6207fdab1877 (patch) | |
tree | faf1e0f67eea43d66c9be7bda4b4529867893d51 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
parent | 67a9f82cc91a3440a11f6544e29df2fc6f4f96cf (diff) | |
download | llvm-7a9e3ef77a3c4dc1cffb8ae768db6207fdab1877.zip llvm-7a9e3ef77a3c4dc1cffb8ae768db6207fdab1877.tar.gz llvm-7a9e3ef77a3c4dc1cffb8ae768db6207fdab1877.tar.bz2 |
[mlir] Fix crash in RewriterGen when a `TypeConstraint` is not given an argument
The code assumes that a TypeConstraint in the additional constraints list specifies precisely one argument.
If the user were to not specify any, it'd result in a crash. If given more than one, the additional ones were ignored.
This patch fixes the crash and disallows user errors by adding a check that a single argument is supplied to the TypeConstraint
Differential Revision: https://reviews.llvm.org/D118763
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions