Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/runtime/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ class MetadataModuleNode : public ::tvm::runtime::ModuleNode {
<< symbol::tvm_get_c_metadata << " returned nullptr";

metadata_ = runtime::metadata::Metadata(
static_cast<const struct ::TVMMetadata*>(ret_value.v_handle));
static_cast<const struct TVMMetadata*>(ret_value.v_handle));
}

*rv = metadata_;
return;
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/tir/analysis/identify_memcpy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ TVM_REGISTER_GLOBAL("tir.analysis._identify_memcpy").set_body_typed([](const Stm
using IRVisitorWithAnalyzer::VisitStmt_;
void VisitStmt_(const ForNode* op) override {
For loop = GetRef<For>(op);
auto result = IdentifyMemCpyImpl(loop, &analyzer_);
auto result = IdentifyMemCpyImpl(loop, &(Visitor::analyzer_));
if (auto* ptr = std::get_if<MemCpyDetails>(&result)) {
output->push_back(Array{ptr->source, ptr->dest});
} else if (auto* ptr = std::get_if<std::string>(&result)) {
Expand Down
2 changes: 1 addition & 1 deletion src/tir/contrib/ethosu/passes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ FlattenUnwrapResult FlattenUnwrap(const Stmt& stmt) {
for (const auto& sub_stmt : ptr->seq) {
flatten_unwrap(sub_stmt);
}
} else if (auto* ptr = stmt.as<EvaluateNode>(); ptr && ptr->value.as<IntImmNode>()) {
} else if (auto* ptr1 = stmt.as<EvaluateNode>(); ptr1 && ptr1->value.as<IntImmNode>()) {
// Skip
} else {
seq_stmt.push_back(stmt);
Expand Down