We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ModuleCodegen
1 parent aa038c2 commit 9b8701dCopy full SHA for 9b8701d
src/lib.rs
@@ -393,7 +393,7 @@ impl WriteBackendMethods for GccCodegenBackend {
393
unsafe fn optimize(
394
_cgcx: &CodegenContext<Self>,
395
_dcx: DiagCtxtHandle<'_>,
396
- module: &ModuleCodegen<Self::Module>,
+ module: &mut ModuleCodegen<Self::Module>,
397
config: &ModuleConfig,
398
) -> Result<(), FatalError> {
399
module.module_llvm.context.set_optimization_level(to_gcc_opt_level(config.opt_level));
0 commit comments