[compiler-rt] [llvm] [Asan] Add "funclet" OpBundle to generated runtime calls if required by EH personality (PR #82533)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 13:08:13 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 cd160a6e98533fbc04a76d1b969db77b49668eb3 8c4dded7abe54869e516b789b3a2a9057083371a -- compiler-rt/test/asan/TestCases/Windows/issue64990.cpp llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 368d1c42ee..8249ad5dbd 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1327,11 +1327,11 @@ void AddressSanitizer::instrumentMemIntrinsic(MemIntrinsic *MI,
                                               RuntimeCallInserter &RTCI) {
   InstrumentationIRBuilder IRB(MI);
   if (isa<MemTransferInst>(MI)) {
-  RTCI.createRuntimeCall(
-      IRB, isa<MemMoveInst>(MI) ? AsanMemmove : AsanMemcpy,
-      {IRB.CreateAddrSpaceCast(MI->getOperand(0), PtrTy),
-       IRB.CreateAddrSpaceCast(MI->getOperand(1), PtrTy),
-       IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)});
+    RTCI.createRuntimeCall(
+        IRB, isa<MemMoveInst>(MI) ? AsanMemmove : AsanMemcpy,
+        {IRB.CreateAddrSpaceCast(MI->getOperand(0), PtrTy),
+         IRB.CreateAddrSpaceCast(MI->getOperand(1), PtrTy),
+         IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)});
   } else if (isa<MemSetInst>(MI)) {
     RTCI.createRuntimeCall(
         IRB, AsanMemset,

``````````

</details>


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


More information about the llvm-commits mailing list