diff options
Diffstat (limited to 'lib/SPIRV/libSPIRV/SPIRVInstruction.h')
-rw-r--r-- | lib/SPIRV/libSPIRV/SPIRVInstruction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/SPIRV/libSPIRV/SPIRVInstruction.h b/lib/SPIRV/libSPIRV/SPIRVInstruction.h index c183f44..7ee2c29 100644 --- a/lib/SPIRV/libSPIRV/SPIRVInstruction.h +++ b/lib/SPIRV/libSPIRV/SPIRVInstruction.h @@ -37,8 +37,8 @@ /// //===----------------------------------------------------------------------===// -#ifndef SPIRVINSTRUCTION_HPP_ -#define SPIRVINSTRUCTION_HPP_ +#ifndef SPIRV_LIBSPIRV_SPIRVINSTRUCTION_H +#define SPIRV_LIBSPIRV_SPIRVINSTRUCTION_H #include "SPIRVBasicBlock.h" #include "SPIRVEnum.h" @@ -1462,7 +1462,7 @@ protected: case OpTypeStruct: break; default: - assert("Invalid type"); + static_assert("Invalid type", ""); } } std::vector<SPIRVId> Constituents; @@ -2164,4 +2164,4 @@ SPIRVSpecConstantOp *createSpecConstantOpInst(SPIRVInstruction *Inst); SPIRVInstruction *createInstFromSpecConstantOp(SPIRVSpecConstantOp *C); } // namespace SPIRV -#endif // SPIRVINSTRUCTION_HPP_ +#endif // SPIRV_LIBSPIRV_SPIRVINSTRUCTION_H |