[llvm] [test][Support] Disable CFI-icall for DynamicLibrary Overload test (#202446) (PR #202684)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 08:10:33 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Vitaly Buka (vitalybuka)

<details>
<summary>Changes</summary>

The test performs manual symbol lookup and calls, which triggers
Control Flow Integrity indirect call checks.

Reland of #<!-- -->202446 reverted with #<!-- -->202550.

Here we are going to use LLVM_NO_SANITIZE.


---
Full diff: https://github.com/llvm/llvm-project/pull/202684.diff


1 Files Affected:

- (modified) llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp (+1-1) 


``````````diff
diff --git a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
index fb6f636e65b70..a2eb35ebba3f7 100644
--- a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
+++ b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
@@ -59,7 +59,7 @@ static const char *OverloadTestA() { return "OverloadCall"; }
 
 std::string StdString(const char *Ptr) { return Ptr ? Ptr : ""; }
 
-TEST(DynamicLibrary, Overload) {
+TEST(DynamicLibrary, Overload) LLVM_NO_SANITIZE("cfi-icall") {
   {
     std::string Err;
     DynamicLibrary DL =

``````````

</details>


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


More information about the llvm-commits mailing list