[clang] [ObjC] Set visibility of IvarOffsetGV when it is created in ObjCIvarOffsetVariable (PR #83726)

via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 3 08:34:15 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 03f150bb5688be72ae4dfb43fbe6795aae493e6d 0c00edec5ff4736187f11138334541a75cebccf0 -- clang/lib/CodeGen/CGObjCMac.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 18194d1dff..984d6e33e7 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -6841,7 +6841,7 @@ CGObjCNonFragileABIMac::ObjCIvarOffsetVariable(const ObjCInterfaceDecl *ID,
         IvarOffsetGV->setDLLStorageClass(
             llvm::GlobalValue::DLLExportStorageClass);
     }
-    
+
     if (IsPrivateOrPackage || ID->getVisibility() == HiddenVisibility)
       IvarOffsetGV->setVisibility(llvm::GlobalValue::HiddenVisibility);
     else

``````````

</details>


https://github.com/llvm/llvm-project/pull/83726


More information about the cfe-commits mailing list