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
ace4c45a
Commit
ace4c45a
authored
Jul 15, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18 from srk-lunarg/v30_static_analysis_fixes
Comment out some dead assignments per suggestion from static analysis…
parents
a417f010
465a1466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
SPVRemapper.cpp
SPIRV/SPVRemapper.cpp
+7
-6
No files found.
SPIRV/SPVRemapper.cpp
View file @
ace4c45a
...
...
@@ -450,11 +450,12 @@ namespace spv {
return
nextInst
;
case
spv
:
:
OperandVariableLiterals
:
if
(
opCode
==
spv
::
OpDecorate
&&
asDecoration
(
word
-
1
)
==
spv
::
DecorationBuiltIn
)
{
++
word
;
--
numOperands
;
}
word
+=
numOperands
;
// for clarity
// if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) {
// ++word;
// --numOperands;
// }
// word += numOperands;
return
nextInst
;
case
spv
:
:
OperandVariableLiteralId
:
...
...
@@ -466,7 +467,7 @@ namespace spv {
return
nextInst
;
case
spv
:
:
OperandLiteralString
:
word
+=
literalStringWords
(
literalString
(
word
));
// word += literalStringWords(literalString(word)); // for clarity
return
nextInst
;
// Single word operands we simply ignore, as they hold no IDs
...
...
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