summaryrefslogtreecommitdiff
path: root/source/slang/diagnostics.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-02-27 16:18:06 -0500
committerGitHub <noreply@github.com>2019-02-27 16:18:06 -0500
commit413aa5a0f9d92bfaecf4b8c3fad357812847695d (patch)
tree9e715536732f5cbefb57e4059577a5fd5a4f6b9c /source/slang/diagnostics.h
parenteee68205636f26ac8060dbb2b1725fd3c80e54a8 (diff)
Make sure sourceManager is initialized on DiagnosticSink. (#868)
Typo fix.
Diffstat (limited to 'source/slang/diagnostics.h')
-rw-r--r--source/slang/diagnostics.h10
1 files changed, 5 insertions, 5 deletions
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)
{