We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dddae8 commit 622617aCopy full SHA for 622617a
taichi/ir/statements.h
@@ -367,9 +367,11 @@ class PtrOffsetStmt : public Stmt {
367
368
bool is_local_ptr() const {
369
if (origin->is<AllocaStmt>() || origin->is<GlobalTemporaryStmt>()) {
370
- auto is_tensor_type = origin->ret_type->is<PointerType>() ?
371
- origin->ret_type->cast<PointerType>()->get_pointee_type()->is<TensorType>() :
372
- origin->ret_type->is<TensorType>();
+ auto is_tensor_type = origin->ret_type->is<PointerType>()
+ ? origin->ret_type->cast<PointerType>()
+ ->get_pointee_type()
373
+ ->is<TensorType>()
374
+ : origin->ret_type->is<TensorType>();
375
TI_ASSERT_INFO(is_tensor_type,
376
"PtrOffsetStmt can only be used for Alloca (TensorType).");
377
}
0 commit comments