This is an automated email from the ASF dual-hosted git repository.
masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new bf0607bd31 [VTA] Provide zero-initialization for VTAGenericInsn
(#13698)
bf0607bd31 is described below
commit bf0607bd317a7db8eba1a91c12170934c1ad201f
Author: Eric Lunderberg <[email protected]>
AuthorDate: Wed Jan 4 18:30:09 2023 -0600
[VTA] Provide zero-initialization for VTAGenericInsn (#13698)
Previously, this line caused a warning for `-Wmaybe-uninitialized`
when compiling in g++ 11.3.0.
---
vta/runtime/runtime.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vta/runtime/runtime.cc b/vta/runtime/runtime.cc
index b139fbda68..c3d37a1313 100644
--- a/vta/runtime/runtime.cc
+++ b/vta/runtime/runtime.cc
@@ -915,7 +915,7 @@ class InsnQueue : public BaseQueue<VTAGenericInsn> {
protected:
/*! \return Add new instruction to the buffer. */
VTAGenericInsn* NextInsn() {
- VTAGenericInsn insn;
+ VTAGenericInsn insn = {};
dram_buffer_.push_back(insn);
return &dram_buffer_.back();
}