diff options
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index f3eb71bdc..1c1b9feac 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2708,7 +2708,8 @@ proc getDefaultValue(p: BProc; typ: PType; info: TLineInfo): Rope = else: globalError(p.config, info, "cannot create null element for: " & $t.kind) -proc getNullValueAux(p: BProc; t: PType; obj, cons: PNode, result: var Rope; count: var int) = +proc getNullValueAux(p: BProc; t: PType; obj, cons: PNode, + result: var Rope; count: var int) = case obj.kind of nkRecList: for it in obj.sons: @@ -2734,7 +2735,8 @@ proc getNullValueAux(p: BProc; t: PType; obj, cons: PNode, result: var Rope; cou else: localError(p.config, cons.info, "cannot create null element for: " & $obj) -proc getNullValueAuxT(p: BProc; orig, t: PType; obj, cons: PNode, result: var Rope; count: var int) = +proc getNullValueAuxT(p: BProc; orig, t: PType; obj, cons: PNode, + result: var Rope; count: var int) = var base = t.sons[0] let oldRes = result if not p.module.compileToCpp: result.add "{" |