[LLVM 22] fix calls to llvm.lifetime.start#5017
Merged
thewilsonator merged 2 commits intoldc-developers:masterfrom Nov 12, 2025
Merged
[LLVM 22] fix calls to llvm.lifetime.start#5017thewilsonator merged 2 commits intoldc-developers:masterfrom
llvm.lifetime.start#5017thewilsonator merged 2 commits intoldc-developers:masterfrom
Conversation
Member
|
let's add the testcase that breaks without the fix of #5015 |
Contributor
|
Test case is struct CodepointSet
{
CodepointSet opBinary(string op, U)(U )
{
return this;
}
this(this) { }
}
CodepointSet memoizeExpr(string expr)()
{
if (__ctfe)
return mixin(expr);
CodepointSet slot;
return slot;
}
void wordCharacter() {
// TODO: Check for no call to @llvm.lifetime for `__copytmp` sret
memoizeExpr!"unicode.A | unicode.M";
}
struct unicode
{
static CodepointSet opDispatch(string name)()
{
CodepointSet set;
return set;
}
}
struct Grapheme
{
/// Ctor
this(C)(C) { }
this(this) { }
~this() { }
}
enum jamoLBase = 0x1100;
Grapheme decomposeHangul(dchar ch) {
immutable idxS = ch ;
immutable idxT = idxS ;
immutable partL = jamoLBase ;
//TODO: Check for no call to `@llvm.lifetime` for `__sl` sret
if (idxT )
return Grapheme(partL);
return Grapheme();
} |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A revised #4979.