This commit is contained in:
Andreas Rumpf 2018-11-03 11:04:30 +01:00
commit a2e6a873af

View file

@ -340,12 +340,8 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
result.info = n.info result.info = n.info
result.typ = n.typ result.typ = n.typ
else: else:
localError(c.config, n.info, "cannot evaluate 'sizeof' because its type is not defined completely") localError(c.config, n.info, "cannot evaluate 'sizeof' because its type is not defined completely")
result = n
result = nil
of mAlignOf: of mAlignOf:
result = newIntNode(nkIntLit, getAlign(c.config, n[1].typ)) result = newIntNode(nkIntLit, getAlign(c.config, n[1].typ))
result.info = n.info result.info = n.info