You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2025/08/24 18:51:29 UTC
(tvm) 02/02: update
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch debug-symbol
in repository https://gitbox.apache.org/repos/asf/tvm.git
commit d13cc1667aa11748931a5004725e5cb75b068854
Author: tqchen <ti...@gmail.com>
AuthorDate: Sun Aug 24 14:50:30 2025 -0400
update
---
ffi/include/tvm/ffi/error.h | 12 ++++++------
ffi/src/ffi/error.cc | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ffi/include/tvm/ffi/error.h b/ffi/include/tvm/ffi/error.h
index ae06ca5a2c..97311b988c 100644
--- a/ffi/include/tvm/ffi/error.h
+++ b/ffi/include/tvm/ffi/error.h
@@ -214,10 +214,10 @@ class ErrorBuilder {
*
* \endcode
*/
-#define TVM_FFI_THROW(ErrorKind) \
- ::tvm::ffi::details::ErrorBuilder(#ErrorKind, \
+#define TVM_FFI_THROW(ErrorKind) \
+ ::tvm::ffi::details::ErrorBuilder(#ErrorKind, \
TVMFFITraceback(__FILE__, __LINE__, TVM_FFI_FUNC_SIG, 0), \
- TVM_FFI_ALWAYS_LOG_BEFORE_THROW) \
+ TVM_FFI_ALWAYS_LOG_BEFORE_THROW) \
.stream()
/*!
@@ -227,9 +227,9 @@ class ErrorBuilder {
* cannot be caught, and it is better to have a clear log message.
* In most cases, we should use use TVM_FFI_THROW.
*/
-#define TVM_FFI_LOG_AND_THROW(ErrorKind) \
- ::tvm::ffi::details::ErrorBuilder(#ErrorKind, \
- TVMFFITraceback(__FILE__, __LINE__, TVM_FFI_FUNC_SIG, 0), true) \
+#define TVM_FFI_LOG_AND_THROW(ErrorKind) \
+ ::tvm::ffi::details::ErrorBuilder( \
+ #ErrorKind, TVMFFITraceback(__FILE__, __LINE__, TVM_FFI_FUNC_SIG, 0), true) \
.stream()
// Glog style checks with TVM_FFI prefix
diff --git a/ffi/src/ffi/error.cc b/ffi/src/ffi/error.cc
index faf5ea27e3..ba8dbbfb58 100644
--- a/ffi/src/ffi/error.cc
+++ b/ffi/src/ffi/error.cc
@@ -56,8 +56,8 @@ class SafeCallContext {
void TVMFFIErrorSetRaisedFromCStr(const char* kind, const char* message) {
// NOTE: run traceback here to simplify the depth of tracekback
- tvm::ffi::SafeCallContext::ThreadLocal()->SetRaisedByCstr(kind, message,
- TVMFFITraceback(nullptr, 0, nullptr, 0));
+ tvm::ffi::SafeCallContext::ThreadLocal()->SetRaisedByCstr(
+ kind, message, TVMFFITraceback(nullptr, 0, nullptr, 0));
}
void TVMFFIErrorSetRaised(TVMFFIObjectHandle error) {