summaryrefslogtreecommitdiff
path: root/source/opt/strip_debug_info_pass.cpp
diff options
context:
space:
mode:
authorDavid Neto <dneto@google.com>2017-10-20 18:04:20 -0400
committerDavid Neto <dneto@google.com>2017-10-23 10:46:37 -0400
commit24367947367fe9fe2524e7923391a284aa6c3476 (patch)
treed700a738ed915065c478aa5af04a0194db4050b8 /source/opt/strip_debug_info_pass.cpp
parent89b6af90e91eb9e0efbd51c2b3b9909d9750d63c (diff)
downloadSPIRV-Tools-24367947367fe9fe2524e7923391a284aa6c3476.tar.gz
SPIRV-Tools-24367947367fe9fe2524e7923391a284aa6c3476.tar.bz2
SPIRV-Tools-24367947367fe9fe2524e7923391a284aa6c3476.zip
Optimizer: OpModuleProcessed is in its own layout section
This is a recent decision from the SPIR WG. The spec update has not yet been published. Khronos SPIR-V internal issue 199
Diffstat (limited to 'source/opt/strip_debug_info_pass.cpp')
-rw-r--r--source/opt/strip_debug_info_pass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/opt/strip_debug_info_pass.cpp b/source/opt/strip_debug_info_pass.cpp
index 3b2b6ca1..3b4b4431 100644
--- a/source/opt/strip_debug_info_pass.cpp
+++ b/source/opt/strip_debug_info_pass.cpp
@@ -18,7 +18,8 @@ namespace spvtools {
namespace opt {
Pass::Status StripDebugInfoPass::Process(ir::Module* module) {
- bool modified = !module->debugs1().empty() || !module->debugs2().empty();
+ bool modified = !module->debugs1().empty() || !module->debugs2().empty() ||
+ !module->debugs3().empty();
module->debug_clear();
module->ForEachInst([&modified](ir::Instruction* inst) {