[llvm] [llvm][SandboxIR] Fix some clang-cl warnings on Windows (PR #101660)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 05:18:19 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 721aa5dbb965f9f720d788726864a33b695d0141 37f85364a14661c911fe98d3bd52ad3f88abf65b --extensions h -- llvm/include/llvm/SandboxIR/SandboxIR.h llvm/include/llvm/SandboxIR/Use.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/SandboxIR/SandboxIR.h b/llvm/include/llvm/SandboxIR/SandboxIR.h
index 05f4e90f5e..bb205f6863 100644
--- a/llvm/include/llvm/SandboxIR/SandboxIR.h
+++ b/llvm/include/llvm/SandboxIR/SandboxIR.h
@@ -1429,7 +1429,7 @@ class CastInst : public UnaryInstruction {
CastInst(llvm::CastInst *CI, Context &Ctx)
: UnaryInstruction(ClassID::Cast, getCastOpcode(CI->getOpcode()), CI,
Ctx) {}
- friend Context; // for SBCastInstruction()
+ friend Context; // for SBCastInstruction()
Use getOperandUseInternal(unsigned OpIdx, bool Verify) const final {
return getOperandUseDefault(OpIdx, Verify);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/101660
More information about the llvm-commits
mailing list