Skip to content

Commit

Permalink
Appremove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Feb 2, 2024
1 parent 54bc048 commit 8b4c91f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/cgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,6 @@ proc genProcAux*(m: BModule, prc: PSym) =
# In an ideal world the codegen could rely on injectdestructors doing its job properly
# and then the analysis step would not be required.
discard "result init optimized out"
# TODO: allPathsAsgnResult needs to consider exceptions
initLocalVar(p, res, immediateAsgn=false)
else:
initLocalVar(p, res, immediateAsgn=false)
returnStmt = ropecg(p.module, "\treturn $1;$n", [rdLoc(res.loc)])
Expand Down

0 comments on commit 8b4c91f

Please sign in to comment.