mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user