Add missing getDefaultValue() to frontend C++ interface

This commit is contained in:
Martin Kinkelin 2024-03-03 20:54:57 +01:00
parent 8b2fa980e9
commit 81cdec0f7a
3 changed files with 14 additions and 1 deletions

View file

@ -153,7 +153,7 @@ public:
}
// otherwise emit a void[] with the default initializer
else {
Expression *defaultval = sd->getDefaultValue(decl->loc);
Expression *defaultval = getDefaultValue(sd, decl->loc);
LLConstant *c = toConstElem(defaultval, gIR);
b.push_void_array(c, sd->memtype, sd);
}