diff options
author | Mingming Liu <mingmingl@google.com> | 2025-01-09 15:57:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 15:57:32 -0800 |
commit | a6aa9365f75c6f28c3d281c662dcdb6fb5222601 (patch) | |
tree | 9a5d4248292653cc586ec21d876726f2676a85e9 /clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp | |
parent | 504f6ce0c25b5cd721622cd444e9c428f400fd73 (diff) | |
download | llvm-a6aa9365f75c6f28c3d281c662dcdb6fb5222601.zip llvm-a6aa9365f75c6f28c3d281c662dcdb6fb5222601.tar.gz llvm-a6aa9365f75c6f28c3d281c662dcdb6fb5222601.tar.bz2 |
[NFC][AsmPrinter] Pass MJTI by const reference instead of const pointer (#122365)
The caller `AsmPrinter::emitJumpTableInfo` checks [1] `MJTI` is not a
null pointer before calling `emitJumpTableEntry` or
`emitJumpTableSizesSection`.
This patch updates callee function's signature to accept const
reference, this way it's explicit `MJTI` won't be nullptr inside the
callee.
[1]
https://github.com/llvm/llvm-project/blob/9d5299eb61a64cd4df5fefa0299b0cf8d917978f/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp#L2857
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp')
0 files changed, 0 insertions, 0 deletions