From 413aa5a0f9d92bfaecf4b8c3fad357812847695d Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 27 Feb 2019 16:18:06 -0500 Subject: Make sure sourceManager is initialized on DiagnosticSink. (#868) Typo fix. --- source/slang/compiler.h | 2 +- source/slang/diagnostics.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 49d777931..d3b872054 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -265,7 +265,7 @@ namespace Slang /// Get the module that contains the entry point. Module* getModule(); - /// Get the linkage that contains the module for this entry pooint. + /// Get the linkage that contains the module for this entry point. Linkage* getLinkage(); /// Get a list of modules that this entry point depends on. diff --git a/source/slang/diagnostics.h b/source/slang/diagnostics.h index 9efc5efc6..72c272fa0 100644 --- a/source/slang/diagnostics.h +++ b/source/slang/diagnostics.h @@ -138,10 +138,7 @@ namespace Slang class DiagnosticSink { - public: - // The source manager to use when mapping source locations to file+line info - SourceManager* sourceManager; - + public: struct Flag { enum Enum: uint32_t @@ -158,7 +155,10 @@ namespace Slang ISlangWriter* writer = nullptr; Flags flags = 0; - + + // The source manager to use when mapping source locations to file+line info + SourceManager* sourceManager = nullptr; + /* void Error(int id, const String & msg, const SourceLoc & pos) { -- cgit v1.2.3