Update FunctionContext::Inserter::InsertHelper for llvm changes (#4069)

The interface has changed upstream:


https://github.com/llvm/llvm-project/commit/80f881485accb020345ee7e1c4c3151ec55ce590
This commit is contained in:
Danial Klimkin
2024-06-21 20:49:13 +00:00
committed by GitHub
parent 4132c6a65f
commit 7e4f2f2b49
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ auto FunctionContext::CopyObject(SemIR::TypeId type_id, SemIR::InstId source_id,
}
auto FunctionContext::Inserter::InsertHelper(
llvm::Instruction* inst, const llvm::Twine& name, llvm::BasicBlock* block,
llvm::Instruction* inst, const llvm::Twine& name,
llvm::BasicBlock::iterator insert_pt) const -> void {
llvm::StringRef base_name;
llvm::StringRef separator;
@@ -164,7 +164,7 @@ auto FunctionContext::Inserter::InsertHelper(
}
IRBuilderDefaultInserter::InsertHelper(inst, base_name + separator + name,
block, insert_pt);
insert_pt);
}
} // namespace Carbon::Lower