Returns the storage class of the instruction |var|.
| 128 | |
| 129 | // Returns the storage class of the instruction |var|. |
| 130 | spv::StorageClass GetStorageClass(Instruction* var) { |
| 131 | return static_cast<spv::StorageClass>( |
| 132 | var->GetSingleWordInOperand(kOpVariableStorageClassInOperandIndex)); |
| 133 | } |
| 134 | |
| 135 | } // namespace |
| 136 |
no test coverage detected