summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/msgs.nim')
-rwxr-xr-xcompiler/msgs.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 3862c5751..210886173 100755
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -411,7 +411,9 @@ var
 
 proc newFileInfo(fullPath, projPath: string): TFileInfo =
   result.fullPath = fullPath
+  shallow(result.fullPath)
   result.projPath = projPath
+  shallow(result.projPath)
 
 proc fileInfoIdx*(filename: string): int32 =
   var
@@ -420,6 +422,7 @@ proc fileInfoIdx*(filename: string): int32 =
 
   try:
     canon = canonicalizePath(filename)
+    shallow(canon)
   except:
     canon = filename
     # The compiler uses "filenames" such as `command line` or `stdin`