Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
96f49113
Commit
96f49113
authored
Jul 20, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Make previous commit compile with MSVC 2012.
parent
37e83379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
SpvBuilder.h
SPIRV/SpvBuilder.h
+1
-0
No files found.
SPIRV/SpvBuilder.cpp
View file @
96f49113
...
...
@@ -1738,7 +1738,7 @@ void Builder::endSwitch(std::vector<Block*>& /*segmentBlock*/)
// Comments in header
void
Builder
::
makeNewLoop
(
bool
loopTestFirst
)
{
loops
.
push
(
{
}
);
loops
.
push
(
Loop
()
);
Loop
&
loop
=
loops
.
top
();
loop
.
function
=
&
getBuildPoint
()
->
getParent
();
...
...
SPIRV/SpvBuilder.h
View file @
96f49113
...
...
@@ -524,6 +524,7 @@ protected:
// Data that needs to be kept in order to properly handle loops.
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.
// It dominates all the blocks in the loop, i.e. it is always
// executed before any others.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment