[llvm] Fix globals being wrongly tagged after global optimization step (PR #132764)

Daniel Kiss via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 09:21:40 PDT 2025


================
@@ -266,6 +266,16 @@ void GlobalValue::setNoSanitizeMetadata() {
   setSanitizerMetadata(Meta);
 }
 
+void GlobalValue::disableSanitizerMetadataGlobalTagging() {
+  if (!isTagged()) {
----------------
DanielKristofKiss wrote:

the braces are not need for 1 liner condition. ( `git clang-format ` should handle it too) 

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


More information about the llvm-commits mailing list