summaryrefslogtreecommitdiffstats
path: root/source/slang/source-loc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/source-loc.cpp')
-rw-r--r--source/slang/source-loc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/source-loc.cpp b/source/slang/source-loc.cpp
index 00b6d3be4..886b4fefb 100644
--- a/source/slang/source-loc.cpp
+++ b/source/slang/source-loc.cpp
@@ -14,7 +14,11 @@ const String PathInfo::getMostUniqueIdentity() const
switch (type)
{
case Type::Normal: return uniqueIdentity;
- case Type::FoundPath: return foundPath;
+ case Type::FoundPath:
+ case Type::FromString:
+ {
+ return foundPath;
+ }
default: return "";
}
}