[llvm] [NFC] [HWASan] pull removeFnAttributes into function (PR #109488)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 16:06:01 PDT 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 e0ad34e56590fa2e6ffdf617e044de7eadee2139 0cc739b843b4565aa40c10dcc0826ad51d6caf9a --extensions cpp -- llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 50f8802924..af4cdf3c55 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -639,7 +639,7 @@ void HWAddressSanitizer::initializeModule() {
LLVM_DEBUG(dbgs() << "Init " << M.getName() << "\n");
TargetTriple = Triple(M.getTargetTriple());
- for (Function &F: M.functions())
+ for (Function &F : M.functions())
removeFnAttributes(&F);
// x86_64 currently has two modes:
``````````
</details>
https://github.com/llvm/llvm-project/pull/109488
More information about the llvm-commits
mailing list