[llvm] [Object][Wasm] Use offset instead of index for Global address and store size (PR #81781)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 15:24:18 PST 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 3a080a0195ed21b8e12f825cfa00c8fa79f851a6 eb884d0284f121ef6f0a66b030240005dadfd0de -- llvm/include/llvm/BinaryFormat/Wasm.h llvm/include/llvm/Object/Wasm.h llvm/lib/Object/WasmObjectFile.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index 3d02cf7823..bd70747e58 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -351,7 +351,7 @@ struct WasmGlobal {
   WasmInitExpr InitExpr;
   StringRef SymbolName; // from the "linking" section
   uint32_t Offset; // Offset of the definition in the binary's Global section
-  uint32_t Size;  // Size of the definition in the binary's Global section
+  uint32_t Size;   // Size of the definition in the binary's Global section
 };
 
 struct WasmTag {

``````````

</details>


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


More information about the llvm-commits mailing list