File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2004,9 +2004,6 @@ class AsyncCallEmission final : public CallEmission {
2004
2004
IGF.getSILModule ());
2005
2005
2006
2006
// Move all the arguments into the context.
2007
- if (selfValue) {
2008
- llArgs.add (selfValue);
2009
- }
2010
2007
auto layout = getAsyncContextLayout ();
2011
2008
for (unsigned index = 0 , count = layout.getIndirectReturnCount ();
2012
2009
index < count; ++index) {
@@ -2024,8 +2021,10 @@ class AsyncCallEmission final : public CallEmission {
2024
2021
layout.getBindings ().save (IGF, bindingsAddr, llArgs);
2025
2022
}
2026
2023
if (selfValue) {
2024
+ Explosion selfExplosion;
2025
+ selfExplosion.add (selfValue);
2027
2026
auto fieldLayout = layout.getLocalContextLayout ();
2028
- saveValue (fieldLayout, llArgs , isOutlined);
2027
+ saveValue (fieldLayout, selfExplosion , isOutlined);
2029
2028
}
2030
2029
}
2031
2030
void emitCallToUnmappedExplosion (llvm::CallInst *call, Explosion &out) override {
You can’t perform that action at this time.
0 commit comments