We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6da389 commit b3615f6Copy full SHA for b3615f6
lib/SIL/Verifier/SILVerifier.cpp
@@ -2024,6 +2024,14 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
2024
"Inst with qualified ownership in a function that is not qualified");
2025
}
2026
2027
+ void checkEndLifetimeInst(EndLifetimeInst *I) {
2028
+ require(!I->getOperand()->getType().isTrivial(*I->getFunction()),
2029
+ "Source value should be non-trivial");
2030
+ require(!fnConv.useLoweredAddresses() || F.hasOwnership(),
2031
+ "end_lifetime is only valid in functions with qualified "
2032
+ "ownership");
2033
+ }
2034
+
2035
void checkUncheckedValueCastInst(UncheckedValueCastInst *) {
2036
require(
2037
F.hasOwnership(),
0 commit comments