diff --git a/toolchain/lower/file_context.cpp b/toolchain/lower/file_context.cpp index 3127f25a847f9..a085c29ee2cf1 100644 --- a/toolchain/lower/file_context.cpp +++ b/toolchain/lower/file_context.cpp @@ -103,6 +103,7 @@ auto FileContext::Run() -> std::unique_ptr { GetFunction(sem_ir().global_ctor_id()), /*Priority=*/0); } + return std::move(llvm_module_); } @@ -220,7 +221,6 @@ auto FileContext::BuildFunctionDecl(SemIR::FunctionId function_id, // TODO nit: add is_symbolic() to type_id to forward to // type_id.AsConstantId().is_symbolic(). Update call below too. - auto get_llvm_type = [&](SemIR::TypeId type_id) -> llvm::Type* { if (!type_id.has_value()) { return nullptr; diff --git a/toolchain/lower/function_context.h b/toolchain/lower/function_context.h index 07d4ba32d5864..2780fa81cc3b4 100644 --- a/toolchain/lower/function_context.h +++ b/toolchain/lower/function_context.h @@ -46,7 +46,7 @@ class FunctionContext { // Returns a value for the given instruction. auto GetValue(SemIR::InstId inst_id) -> llvm::Value* { - // TODO: if(specific_id_.has_value()) update inst_id first. + // TODO: if(specific_id_.has_value()) may need to update inst_id first. // All builtins are types, with the same empty lowered value. if (SemIR::IsSingletonInstId(inst_id)) {