Author: Ziqing Luo
Date: 2026-07-23T13:50:48-07:00
New Revision: c2a3cbedb5434a25de2f6b80fd24e05a1481a61b

URL: 
https://github.com/llvm/llvm-project/commit/c2a3cbedb5434a25de2f6b80fd24e05a1481a61b
DIFF: 
https://github.com/llvm/llvm-project/commit/c2a3cbedb5434a25de2f6b80fd24e05a1481a61b.diff

LOG: [SSAF] Fix a stage2 test failure with ASan-instrumented clang (#211432)

ASan emits a symbol for a static global in `TestTransformation.cpp` that
causes link issues in green dragon.
Added `__attribute__((no_sanitize("address")))` to that static global to
fix the test.

rdar://182623740

Added: 
    

Modified: 
    
clang/test/Analysis/Scalable/source-edit-generation/Plugins/TestTransformationPlugin/TestTransformation.cpp

Removed: 
    


################################################################################
diff  --git 
a/clang/test/Analysis/Scalable/source-edit-generation/Plugins/TestTransformationPlugin/TestTransformation.cpp
 
b/clang/test/Analysis/Scalable/source-edit-generation/Plugins/TestTransformationPlugin/TestTransformation.cpp
index d3edc34882cef..33a8319cd5b6a 100644
--- 
a/clang/test/Analysis/Scalable/source-edit-generation/Plugins/TestTransformationPlugin/TestTransformation.cpp
+++ 
b/clang/test/Analysis/Scalable/source-edit-generation/Plugins/TestTransformationPlugin/TestTransformation.cpp
@@ -94,7 +94,10 @@ namespace clang::ssaf {
 volatile int SSAFTestTransformationAnchorSource = 0;
 } // namespace clang::ssaf
 
+// This global causes issue in stage2 with ASan-instrumented clang so
+// adding the no-ASan attribute.
 static TransformationRegistry::Add<TestTransformation>
+    __attribute__((no_sanitize("address")))
     RegisterTestTransformation("test-transformation",
                                "Test transformation for the SSAF "
                                "source-edit-generation lit suite");


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to