[llvm] [Analysis] Make LocationSize conversion from uint64_t explicit (PR #133342)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 07:54:04 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 h,cpp -- llvm/include/llvm/Analysis/MemoryLocation.h llvm/include/llvm/CodeGen/MachineFunction.h llvm/include/llvm/CodeGen/SelectionDAG.h llvm/lib/CodeGen/MachineScheduler.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/CodeGen/TargetInstrInfo.cpp llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp llvm/lib/Target/Hexagon/HexagonSubtarget.cpp llvm/lib/Target/Lanai/LanaiInstrInfo.cpp llvm/lib/Target/PowerPC/PPCInstrInfo.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/X86/X86InstrInfo.cpp llvm/unittests/Target/RISCV/RISCVInstrInfoTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Analysis/MemoryLocation.h b/llvm/include/llvm/Analysis/MemoryLocation.h
index c046e0e38..090c4e6a1 100644
--- a/llvm/include/llvm/Analysis/MemoryLocation.h
+++ b/llvm/include/llvm/Analysis/MemoryLocation.h
@@ -130,9 +130,7 @@ public:
constexpr static LocationSize mapTombstone() {
return LocationSize(MapTombstone);
}
- constexpr static LocationSize mapEmpty() {
- return LocationSize(MapEmpty);
- }
+ constexpr static LocationSize mapEmpty() { return LocationSize(MapEmpty); }
// Returns a LocationSize that can correctly represent either `*this` or
// `Other`.
``````````
</details>
https://github.com/llvm/llvm-project/pull/133342
More information about the llvm-commits
mailing list