aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2024-01-29 18:28:56 +0100
committerGitHub <noreply@github.com>2024-01-29 18:28:56 +0100
commit181eab27d244b9a9eb32d6716f9c38f7f3723356 (patch)
treeef576ef73fbceba7d03f5368bb83cfaa49c08a8f /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
parentdb6bf92123fbc82dd6e3da4f88e440415352692d (diff)
downloadllvm-181eab27d244b9a9eb32d6716f9c38f7f3723356.zip
llvm-181eab27d244b9a9eb32d6716f9c38f7f3723356.tar.gz
llvm-181eab27d244b9a9eb32d6716f9c38f7f3723356.tar.bz2
[flang] Set KIND in compiler generated COUNT for SIZE(PACK) (#79801)
Compiler was rewriting SIZE(PACK(x, MASK)) to COUNT(MASK). It was wrapping the COUNT call without a KIND argument (leading to INTEGER(4) result in the characteristics) in an Expr<ExtentType> (implying INTEGER(8) result), this lead to inconsistencies that later hit verifier errors in lowering. Set the KIND argument to the KIND of ExtentType to ensure the built expression is consistent. This requires giving access to some safe place where the "kind" name can be saved and turned into a CharBlock (count has a DIM argument that require using the KIND keyword here). For the FoldingContext that belong to SemanticsContext, this is the same string set as the one used by SemanticsContext for similar purposes.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions