Use typed gep in DtoFinalizeScopeClass (#4081)

This commit is contained in:
Nicholas Wilson 2022-08-31 11:14:23 +08:00 committed by GitHub
parent a79a30c41e
commit d8d105fb1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -1554,7 +1554,7 @@ public:
} else if (auto ve = e->e1->isVarExp()) {
if (auto vd = ve->var->isVarDeclaration()) {
if (vd->onstack()) {
DtoFinalizeScopeClass(e->loc, DtoRVal(dval), vd->onstackWithDtor());
DtoFinalizeScopeClass(e->loc, dval, vd->onstackWithDtor());
onstack = true;
}
}