diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2025-04-11 15:38:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-11 15:38:58 +0100 |
commit | 58211f55c5d42394b3de3310a825d707e7622833 (patch) | |
tree | 490a73d5f801b0ee79e54f4a7f9b4f2fc0d7b1ed /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 12fe15ff9d72697848496894401af3eeb7b6c3b8 (diff) | |
download | llvm-58211f55c5d42394b3de3310a825d707e7622833.zip llvm-58211f55c5d42394b3de3310a825d707e7622833.tar.gz llvm-58211f55c5d42394b3de3310a825d707e7622833.tar.bz2 |
[llvm-reduce] Fix incorrectly ignored null MD in ReduceDIMetadata (#108541)
Commit c2e62c7 updated the ReduceDIMetadata pass to be able to remove
DIGlobalVariableExpressions from MDNode operands; it also accidentally
prevented null operands from being preserved, which results in an
assertion being triggered:
`Targets == NoChunksCounter.count() && "number of chunks changes when
reducing"'
This patch allows us to correctly preserve null operands once again.
I've not got a test case for this yet - I'm hoping this patch is just
trivially correct as-is, because I've not got the hang of reducing a
test case for llvm-reduce yet, but I can get a test case generated if
needed.
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions