[llvm] Fix uninitialized variable (PR #89040)
Isha Agarwal via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 02:17:12 PDT 2024
https://github.com/iagarwa created https://github.com/llvm/llvm-project/pull/89040
Fix uninitialized scalar field
>From a4cc71ae94a8fa9cb0b1f446484cb07140b371b2 Mon Sep 17 00:00:00 2001
From: Isha Agarwal <isha.agarwal at intel.com>
Date: Wed, 17 Apr 2024 02:00:16 -0700
Subject: [PATCH] Fix uninitialized variable
Signed-off-by: Isha Agarwal <isha.agarwal at intel.com>
---
llvm/include/llvm/BinaryFormat/DXContainer.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/BinaryFormat/DXContainer.h b/llvm/include/llvm/BinaryFormat/DXContainer.h
index e8d03f806715f1..7ef858d0b393b6 100644
--- a/llvm/include/llvm/BinaryFormat/DXContainer.h
+++ b/llvm/include/llvm/BinaryFormat/DXContainer.h
@@ -427,7 +427,7 @@ struct ResourceBindInfo : public v0::ResourceBindInfo {
namespace v3 {
struct RuntimeInfo : public v2::RuntimeInfo {
- uint32_t EntryNameOffset;
+ uint32_t EntryNameOffset = 0;
void swapBytes() {
v2::RuntimeInfo::swapBytes();
More information about the llvm-commits
mailing list