SPV: Make previous commit compile with MSVC 2012.
This commit is contained in:
parent
37e8337958
commit
96f4911351
@ -1738,7 +1738,7 @@ void Builder::endSwitch(std::vector<Block*>& /*segmentBlock*/)
|
|||||||
// Comments in header
|
// Comments in header
|
||||||
void Builder::makeNewLoop(bool loopTestFirst)
|
void Builder::makeNewLoop(bool loopTestFirst)
|
||||||
{
|
{
|
||||||
loops.push({ });
|
loops.push(Loop());
|
||||||
Loop& loop = loops.top();
|
Loop& loop = loops.top();
|
||||||
|
|
||||||
loop.function = &getBuildPoint()->getParent();
|
loop.function = &getBuildPoint()->getParent();
|
||||||
|
|||||||
@ -524,6 +524,7 @@ protected:
|
|||||||
|
|
||||||
// Data that needs to be kept in order to properly handle loops.
|
// Data that needs to be kept in order to properly handle loops.
|
||||||
struct Loop {
|
struct Loop {
|
||||||
|
Loop() : header(nullptr), merge(nullptr), body(nullptr), testFirst(false), isFirstIteration(nullptr), function(nullptr) { }
|
||||||
// The header is the first block generated for the loop.
|
// The header is the first block generated for the loop.
|
||||||
// It dominates all the blocks in the loop, i.e. it is always
|
// It dominates all the blocks in the loop, i.e. it is always
|
||||||
// executed before any others.
|
// executed before any others.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user