diff options
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index fab1e19c8..7ead5d07e 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -179,7 +179,7 @@ namespace Slang // This will only be valid/non-null after semantic // checking and IR generation are complete, so it // is not safe to use this field without testing for NULL. - IRModule* irModule; + RefPtr<IRModule> irModule; }; // A request to generate output in some target format @@ -225,7 +225,7 @@ namespace Slang RefPtr<ModuleDecl> moduleDecl; // The IR for the module - IRModule* irModule = nullptr; + RefPtr<IRModule> irModule = nullptr; }; class Session; |
