tqchen opened a new pull request, #629: URL: https://github.com/apache/tvm-ffi/pull/629
This removes the local `type_index` variable in `StructuralWalkCallbackVisitorObj::VisitImpl` and passes the type predicate directly to `TVM_FFI_UNSAFE_ASSUME`. The previous local could trigger `-Wunused-variable` under configurations where the unsafe-assume macro compiles away or does not count as a use, causing warning-as-error builds to fail. Validation: - `git diff --check` - `pre-commit run --files include/tvm/ffi/extra/structural_visit.h` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
