mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 05:16:19 +03:00
Add missing getDefaultValue() to frontend C++ interface
This commit is contained in:
parent
8b2fa980e9
commit
81cdec0f7a
3 changed files with 14 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue