aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2026-01-21 10:00:01 -0500
committerGitHub <noreply@github.com>2026-01-21 10:00:01 -0500
commita28a2f6e50b6a8b0b00a8fd21d25ddae76b89b76 (patch)
tree1790aa7568337a03695f8380ba5707046cf7e492 /llvm/lib/Bitcode/Reader
parent9341067a73d7116765c658de7e6db0494b126329 (diff)
downloadllvm-a28a2f6e50b6a8b0b00a8fd21d25ddae76b89b76.zip
llvm-a28a2f6e50b6a8b0b00a8fd21d25ddae76b89b76.tar.gz
llvm-a28a2f6e50b6a8b0b00a8fd21d25ddae76b89b76.tar.bz2
[AsmPrinter] Analyze GlobalAlias more carefully with getAliaseeObject (#176996)
Move the `GA.getAliaseeObject()` call to the top of `emitGlobalAlias` and reuse the result throughout the function. Since `getAliaseeObject()` can return null, switch to `isa_and_nonnull<>` for correctness. This is just a drive-by fix I noticed in reading the code, not something I actually encountered in practice. This seems to have been last improved in 924696d271cabdda066088c40a0fa98bd240b86a, and I think this version now even closer matches the intent of the comment here.
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions