From bbf12c20dfa7d835a430decc4e029ad467293f20 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 30 Mar 2023 00:25:15 +0800 Subject: Add missing initializer in json source map decoding (#2752) --- source/compiler-core/slang-json-source-map-util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler-core/slang-json-source-map-util.cpp b/source/compiler-core/slang-json-source-map-util.cpp index f7c1711f3..5782b0e89 100644 --- a/source/compiler-core/slang-json-source-map-util.cpp +++ b/source/compiler-core/slang-json-source-map-util.cpp @@ -180,7 +180,7 @@ void _encode(Index v, StringBuilder& out) /* static */SlangResult JSONSourceMapUtil::decode(JSONContainer* container, JSONValue root, DiagnosticSink* sink, RefPtr& out) { - RefPtr sourceMap; + RefPtr sourceMap(new SourceMap); // Let's try and decode the JSON into native types to make this easier... RttiTypeFuncsMap typeMap = JSONNativeUtil::getTypeFuncsMap(); -- cgit v1.2.3