| 214 | } |
| 215 | |
| 216 | spv_result_t GraphicsRobustAccessPass::ProcessCurrentModule() { |
| 217 | auto err = IsCompatibleModule(); |
| 218 | if (err != SPV_SUCCESS) return err; |
| 219 | |
| 220 | ProcessFunction fn = [this](opt::Function* f) { return ProcessAFunction(f); }; |
| 221 | module_status_.modified |= context()->ProcessReachableCallTree(fn); |
| 222 | |
| 223 | // Need something here. It's the price we pay for easier failure paths. |
| 224 | return SPV_SUCCESS; |
| 225 | } |
| 226 | |
| 227 | bool GraphicsRobustAccessPass::ProcessAFunction(opt::Function* function) { |
| 228 | // Ensure that all pointers computed inside a function are within bounds. |
nothing calls this directly
no test coverage detected