[llvm] [SystemZ] Add check for INIT_UNDEF in getInstSizeInBytes (PR #134661)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 07:45:55 PDT 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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/MachineInstr.h llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index cd7b3055a..5d4ce8431 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -1409,7 +1409,7 @@ public:
   }
   bool isKill() const { return getOpcode() == TargetOpcode::KILL; }
   bool isImplicitDef() const { return getOpcode()==TargetOpcode::IMPLICIT_DEF; }
-  bool isInitUndef() const { return getOpcode()==TargetOpcode::INIT_UNDEF; }
+  bool isInitUndef() const { return getOpcode() == TargetOpcode::INIT_UNDEF; }
   bool isInlineAsm() const {
     return getOpcode() == TargetOpcode::INLINEASM ||
            getOpcode() == TargetOpcode::INLINEASM_BR;

``````````

</details>


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


More information about the llvm-commits mailing list