[llvm] [IR] Use User::getHungOffOperands() in HungoffOperandTraits::op_begin/op_end(). NFC (PR #74744)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 10:38:08 PST 2023


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 04cbfcc33ae9a1bc440d553abc73b02421cf6ad2 0eac008df5bb72428277d16dc06663846ad491bf -- llvm/include/llvm/IR/OperandTraits.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/IR/OperandTraits.h b/llvm/include/llvm/IR/OperandTraits.h
index ffece6324a..50e96061b6 100644
--- a/llvm/include/llvm/IR/OperandTraits.h
+++ b/llvm/include/llvm/IR/OperandTraits.h
@@ -93,9 +93,7 @@ struct VariadicOperandTraits {
 
 template <unsigned MINARITY = 1>
 struct HungoffOperandTraits {
-  static Use *op_begin(User* U) {
-    return U->getHungOffOperands();
-  }
+  static Use *op_begin(User *U) { return U->getHungOffOperands(); }
   static Use *op_end(User* U) {
     return U->getHungOffOperands() + U->getNumOperands();
   }

``````````

</details>


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


More information about the llvm-commits mailing list