[backport] always set fileInfoIdx.isKnownFile (#12773)

This commit is contained in:
Jasper Jenkins 2019-11-29 13:36:01 -08:00 • committed by Miran
commit b6b8d540e3

View file

@ -81,6 +81,7 @@ proc fileInfoIdx*(conf: ConfigRef; filename: AbsoluteFile; isKnownFile: var bool
pseudoPath = true pseudoPath = true
if conf.m.filenameToIndexTbl.hasKey(canon.string): if conf.m.filenameToIndexTbl.hasKey(canon.string):
isKnownFile = true
result = conf.m.filenameToIndexTbl[canon.string] result = conf.m.filenameToIndexTbl[canon.string]
else: else:
isKnownFile = false isKnownFile = false