Commit 32fd5d26 by John Kessenich

Memory/constructor/warning clean-up. Addresses issue #705.

parent f1aeac89
...@@ -255,7 +255,7 @@ extern TPoolAllocator& GetThreadPoolAllocator(); ...@@ -255,7 +255,7 @@ extern TPoolAllocator& GetThreadPoolAllocator();
struct TThreadMemoryPools struct TThreadMemoryPools
{ {
TPoolAllocator* threadPoolAllocator; TPoolAllocator* threadPoolAllocator;
}; };
void SetThreadPoolAllocator(TPoolAllocator& poolAllocator); void SetThreadPoolAllocator(TPoolAllocator& poolAllocator);
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits. // For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run). // For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.1773" #define GLSLANG_REVISION "Overload400-PrecQual.1804"
#define GLSLANG_DATE "19-Jan-2017" #define GLSLANG_DATE "02-Feb-2017"
...@@ -105,8 +105,8 @@ void SetThreadPoolAllocator(TPoolAllocator& poolAllocator) ...@@ -105,8 +105,8 @@ void SetThreadPoolAllocator(TPoolAllocator& poolAllocator)
TPoolAllocator::TPoolAllocator(int growthIncrement, int allocationAlignment) : TPoolAllocator::TPoolAllocator(int growthIncrement, int allocationAlignment) :
pageSize(growthIncrement), pageSize(growthIncrement),
alignment(allocationAlignment), alignment(allocationAlignment),
freeList(0), freeList(nullptr),
inUseList(0), inUseList(nullptr),
numCalls(0) numCalls(0)
{ {
// //
......
...@@ -1632,6 +1632,7 @@ TProgram::TProgram() : pool(0), reflection(0), ioMapper(nullptr), linked(false) ...@@ -1632,6 +1632,7 @@ TProgram::TProgram() : pool(0), reflection(0), ioMapper(nullptr), linked(false)
TProgram::~TProgram() TProgram::~TProgram()
{ {
delete ioMapper;
delete infoSink; delete infoSink;
delete reflection; delete reflection;
......
...@@ -209,6 +209,9 @@ struct TResolverAdaptor ...@@ -209,6 +209,9 @@ struct TResolverAdaptor
TIoMapResolver& resolver; TIoMapResolver& resolver;
TInfoSink& infoSink; TInfoSink& infoSink;
bool& error; bool& error;
private:
TResolverAdaptor& operator=(TResolverAdaptor&);
}; };
/* /*
......
...@@ -540,6 +540,7 @@ protected: ...@@ -540,6 +540,7 @@ protected:
bool linked; bool linked;
private: private:
TProgram(TProgram&);
TProgram& operator=(TProgram&); TProgram& operator=(TProgram&);
}; };
......
...@@ -2319,6 +2319,8 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node) ...@@ -2319,6 +2319,8 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
tFinalize(HlslParseContext& p) : parseContext(p) { } tFinalize(HlslParseContext& p) : parseContext(p) { }
~tFinalize() { parseContext.finalizeFlattening(); } ~tFinalize() { parseContext.finalizeFlattening(); }
HlslParseContext& parseContext; HlslParseContext& parseContext;
private:
tFinalize& operator=(tFinalize&) { }
} finalize(parseContext); } finalize(parseContext);
// Initialize the flattening accumulation data, so we can track data across multiple bracket or // Initialize the flattening accumulation data, so we can track data across multiple bracket or
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment