Skip to content

Commit

Permalink
Fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Aug 23, 2022
1 parent 35fddff commit 3d542fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taichi/runtime/llvm/llvm_aot_module_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::unique_ptr<aot::Field> LlvmAotModule::make_new_field(
return std::make_unique<llvm_aot::FieldImpl>(std::move(loaded));
}

std::unique_ptr<aot::CompiledGraph> LlvmAotModule::get_graph(std::string name) {
std::unique_ptr<aot::CompiledGraph> LlvmAotModule::get_graph(const std::string& name) {
auto it = graphs_.find(name);
if (it == graphs_.end()) {
TI_DEBUG("Cannot find graph {}", name);
Expand Down
2 changes: 1 addition & 1 deletion taichi/runtime/llvm/llvm_aot_module_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class LlvmAotModule : public aot::Module {
return initialized_snode_tree_ids.count(snode_tree_id);
}

std::unique_ptr<aot::CompiledGraph> get_graph(std::string name) override;
std::unique_ptr<aot::CompiledGraph> get_graph(const std::string& name) override;

protected:
virtual FunctionType convert_module_to_function(
Expand Down

0 comments on commit 3d542fe

Please sign in to comment.