[llvm] [NFC] Suppress spurious deprecation warning with MSVC (PR #124764)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 07:21:54 PST 2025
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 2abde54aabc4b8878a5665e4d70a0525e9041456 d321c21bd2c80048d03be845fae93e3d9117bbd2 --extensions cpp,h -- llvm/include/llvm/IR/BasicBlock.h llvm/lib/IR/BasicBlock.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index d3d382fe50..dca42a57fa 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -371,7 +371,7 @@ const Instruction* BasicBlock::getFirstNonPHI() const {
return nullptr;
}
-Instruction* BasicBlock::getFirstNonPHI() {
+Instruction *BasicBlock::getFirstNonPHI() {
for (Instruction &I : *this)
if (!isa<PHINode>(I))
return &I;
``````````
</details>
https://github.com/llvm/llvm-project/pull/124764
More information about the llvm-commits
mailing list