diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-27 16:18:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-27 16:18:06 -0500 |
| commit | 413aa5a0f9d92bfaecf4b8c3fad357812847695d (patch) | |
| tree | 9e715536732f5cbefb57e4059577a5fd5a4f6b9c | |
| parent | eee68205636f26ac8060dbb2b1725fd3c80e54a8 (diff) | |
Make sure sourceManager is initialized on DiagnosticSink. (#868)
Typo fix.
| -rw-r--r-- | source/slang/compiler.h | 2 | ||||
| -rw-r--r-- | source/slang/diagnostics.h | 10 |
2 files changed, 6 insertions, 6 deletions
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) { |
