[spirv] Properly return when finding error in serialization
authorLei Zhang <antiagainst@google.com>
Tue, 12 Nov 2019 18:33:36 +0000 (10:33 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 12 Nov 2019 18:45:13 +0000 (10:45 -0800)
commitf4aca03232467174eaf734c3a201178970bdcef2
tree8a35a0d733d828b7f6bab9d0d68d4f400d9c0dce
parentc4a0883a9253336533dcaedc4b0f6201b6448666
[spirv] Properly return when finding error in serialization

PiperOrigin-RevId: 280001339
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp