mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Update LLVM, picking up new -disable-free flag logic (#5333)
This requires fixing some uses of deprecated APIs.
This commit is contained in:
@@ -264,7 +264,7 @@ auto FileContext::BuildFunctionTypeInfo(const SemIR::Function& function,
|
||||
auto return_param_id = SemIR::InstId::None;
|
||||
if (return_info.has_return_slot()) {
|
||||
param_types.push_back(
|
||||
llvm::PointerType::get(return_type, /*AddressSpace=*/0));
|
||||
llvm::PointerType::get(llvm_context(), /*AddressSpace=*/0));
|
||||
return_param_id = function.return_slot_pattern_id;
|
||||
param_inst_ids.push_back(return_param_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user