Skip to content

Conversation

@jmmartinez
Copy link

By convention the AS of the elements of llvm.compiler.used & llvm.used is 0. However, the AS of CGM.Int8PtrTy is not always 0.

This leaves some LLVM helpers
(appendToUsed/appendToCompilerUsed/removeFromUsedLists) unusable.

This patch makes the AS of the elements of these variables to be 0.

This PR is related to llvm#162660

…ace(0) (llvm#164432)

By convention the AS of the elements of `llvm.compiler.used` &
`llvm.used` is 0. However, the AS of `CGM.Int8PtrTy` is not always 0.

This leaves some LLVM helpers
(`appendToUsed/appendToCompilerUsed/removeFromUsedLists`) unusable.

This patch makes the AS of the elements of these variables to be 0.

This PR is related to llvm#162660
@jmmartinez jmmartinez requested a review from ronlieb November 3, 2025 17:32
@jmmartinez jmmartinez self-assigned this Nov 3, 2025
@z1-cciauto
Copy link
Collaborator

@ronlieb ronlieb closed this Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants