[LLVM 21] fix calls to llvm.lifetime.start
#4979
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This mostly fixes compilation for LLVM21, except for some breakage with regards to moving
llvm.lifetime.start
to taking only andAllocaInst
(or aPoison
).and
(the above ` | grep "%0")
which both produce a call to
@llvm.lifetime.start.p0(ptr captures(none) %0)
and%0
in this case is anArgument
not anAllocaInst
.I'm trying to figure out where those calls are coming from. Is it the ABI messing things up somehow? I don't know what is special about those functions.
there is only the one use of it and