Remove decoration of undefined IDs
authorqining <qining@google.com>
Thu, 10 Mar 2016 00:54:03 +0000 (19:54 -0500)
committerqining <qining@google.com>
Thu, 10 Mar 2016 00:54:03 +0000 (19:54 -0500)
commitda39733f2892d3e65af8e1286fbb348cfc2883fd
tree8d7e02deac2631a965a177cd000227c61b1b242e
parentf7497e289bcd214e33fbf29a34b693acb82a0fb0
Remove decoration of undefined IDs

Fix issue #185 by removing OpDecorate instructions whose target IDs are
defined in unreachable blocks and thus not dumped in the generated
SPIR-V code.
SPIRV/GlslangToSpv.cpp
SPIRV/SpvBuilder.cpp
SPIRV/SpvBuilder.h
SPIRV/spvIR.h