diff options
author | Felix Schneider <fx.schn@gmail.com> | 2024-11-03 15:31:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-03 15:31:25 +0100 |
commit | a07b422e90174430213201d0b4b307f5ed089d3f (patch) | |
tree | 9a66af79651e0e1f4e1638590bd93bb9f405142d /libc/src/math/generic/f16subl.cpp | |
parent | 30213e99b86a078c9d472264c7edeea9aa638dd4 (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
The `SemiFunctionType` allows printing/parsing a set of argument and
result types, where there is always exactly one argument type and zero
or more result types. If there are no result types, the argument type
can be written without enclosing parens in the assembly. If there is at
least one result type, the parens are mandatory.
This patch fixes a bug where omitting the parens around the argument
types for a `SemiFunctionType` with non-optional result Types would
crash the parser. It introduces a `bool` argument `resultOptional` to
the parser and printer which, when `false`, correctly enforces the
parens around argument types, otherwise printing an error.
Fix https://github.com/llvm/llvm-project/issues/109128
Diffstat (limited to 'libc/src/math/generic/f16subl.cpp')
0 files changed, 0 insertions, 0 deletions