compiler: remove unused assignment flags (#9760)

This commit is contained in:
Jacek Sieka 2018-11-21 04:04:45 -06:00 • committed by Andreas Rumpf
commit 2b2fc5c7e9
2 changed files with 5 additions and 20 deletions

View file

@ -294,7 +294,7 @@ proc genObjectInit(p: BProc, section: TCProcSection, t: PType, a: TLoc,
type
TAssignmentFlag = enum
needToCopy, afDestIsNil, afDestIsNotNil, afSrcIsNil, afSrcIsNotNil
needToCopy
TAssignmentFlags = set[TAssignmentFlag]
proc genRefAssign(p: BProc, dest, src: TLoc, flags: TAssignmentFlags)
@ -313,7 +313,7 @@ proc resetLoc(p: BProc, loc: var TLoc) =
var nilLoc: TLoc
initLoc(nilLoc, locTemp, loc.lode, OnStack)
nilLoc.r = rope("NIM_NIL")
genRefAssign(p, loc, nilLoc, {afSrcIsNil})
genRefAssign(p, loc, nilLoc, {})
else:
linefmt(p, cpsStmts, "$1 = 0;$n", rdLoc(loc))
else: