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.
2 parents bdf7b2a + 4e00cad commit df2afaaCopy full SHA for df2afaa
lib/SILOptimizer/Mandatory/AccessEnforcementSelection.cpp
@@ -107,6 +107,10 @@ class DynamicCaptures {
107
void recordCapture(AddressCapture capture) {
108
LLVM_DEBUG(llvm::dbgs() << "Dynamic Capture: " << capture);
109
110
+ // *NOTE* For dynamically replaceable local functions, getCalleeFunction()
111
+ // returns nullptr. This assert verifies the assumption that a captured
112
+ // local variable can never be promoted to capture-by-address for
113
+ // dynamically replaceable local functions.
114
auto callee = capture.site.getCalleeFunction();
115
assert(callee && "cannot locate function ref for nonescaping closure");
116
0 commit comments