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.
1 parent b7091ec commit 6388524Copy full SHA for 6388524
src/mono_item.rs
@@ -64,7 +64,7 @@ impl<'gcc, 'tcx> PreDefineCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
64
if linkage != Linkage::Internal && self.tcx.is_compiler_builtins(LOCAL_CRATE) {
65
#[cfg(feature = "master")]
66
decl.add_attribute(FnAttribute::Visibility(gccjit::Visibility::Hidden));
67
- } else {
+ } else if visibility != Visibility::Default {
68
69
decl.add_attribute(FnAttribute::Visibility(base::visibility_to_gcc(visibility)));
70
}
0 commit comments