diff options
Diffstat (limited to 'source/slang/parser.cpp')
| -rw-r--r-- | source/slang/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp index ea8e567b4..5d1b254d7 100644 --- a/source/slang/parser.cpp +++ b/source/slang/parser.cpp @@ -992,7 +992,7 @@ namespace Slang else { // default case is a type parameter - auto paramDecl = new GenericTypeParamDecl(); + RefPtr<GenericTypeParamDecl> paramDecl = new GenericTypeParamDecl(); parser->FillPosition(paramDecl); paramDecl->nameAndLoc = NameLoc(parser->ReadToken(TokenType::Identifier)); if (AdvanceIf(parser, TokenType::Colon)) |
