Initialize member TSymbol::uniqueId.
authorKevin Athey <kda@google.com>
Tue, 16 Nov 2021 00:33:08 +0000 (16:33 -0800)
committerKevin Athey <kda@google.com>
Tue, 16 Nov 2021 00:33:08 +0000 (16:33 -0800)
glslang/MachineIndependent/SymbolTable.h

index 720999a..31312ec 100644 (file)
@@ -84,7 +84,7 @@ typedef TVector<const char*> TExtensionList;
 class TSymbol {
 public:
     POOL_ALLOCATOR_NEW_DELETE(GetThreadPoolAllocator())
-    explicit TSymbol(const TString *n) :  name(n), extensions(0), writable(true) { }
+    explicit TSymbol(const TString *n) :  name(n), uniqueId(0), extensions(0), writable(true) { }
     virtual TSymbol* clone() const = 0;
     virtual ~TSymbol() { }  // rely on all symbol owned memory coming from the pool