summaryrefslogtreecommitdiffstats
path: root/source/slang/ir-serialize.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-01-10 16:01:05 -0500
committerGitHub <noreply@github.com>2019-01-10 16:01:05 -0500
commitdbf5f413cd7a7b0448312a6f198b2a544087ac58 (patch)
treef9dce7776ed118f5b97e2446dccbb2631edec3d8 /source/slang/ir-serialize.cpp
parenteb331446e3bee812d1df19cf59eb2d23d287ac74 (diff)
Improvements around review of debug serialization info (#769)
* * Make SourceView and SourceFile no longer derive from RefObject * Both have life time now managed by SourceManager * Tidied up a little around the serialization test code - just create the IRModule once * Simplified code around deleting SourceView/File. * Looked into generateIRForTranslationUnit - seems reasonable to just call it once, because it has side effects.
Diffstat (limited to 'source/slang/ir-serialize.cpp')
-rw-r--r--source/slang/ir-serialize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/ir-serialize.cpp b/source/slang/ir-serialize.cpp
index 9c09f53e7..61b21f1ef 100644
--- a/source/slang/ir-serialize.cpp
+++ b/source/slang/ir-serialize.cpp
@@ -1800,7 +1800,7 @@ static int _calcFixSourceLoc(const IRSerialData::DebugSourceInfo& info, SourceVi
pathInfo.type = PathInfo::Type::FoundPath;
pathInfo.foundPath = debugStringSlices[UInt(srcSourceInfo.m_pathIndex)];
- RefPtr<SourceFile> sourceFile = sourceManager->createSourceFileWithSize(pathInfo, srcSourceInfo.m_endSourceLoc - srcSourceInfo.m_startSourceLoc);
+ SourceFile* sourceFile = sourceManager->createSourceFileWithSize(pathInfo, srcSourceInfo.m_endSourceLoc - srcSourceInfo.m_startSourceLoc);
SourceView* sourceView = sourceManager->createSourceView(sourceFile);
// We need to accumulate all line numbers, for this source file, both adjusted and unadjusted