summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-05 12:40:42 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-05 12:40:42 +0100
commitc237b956070bfb63511d865b0053509b16fa85a3 (patch)
treeee8e25456111de4f01eebbc0c05169e703e65c96 /CompilerDriver
parent8b7114b47e538f820adfebf59ac79cfd760639c6 (diff)
ccplus: initialize memory to zero.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CompilerDriver')
-rw-r--r--CompilerDriver/ccplus.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerDriver/ccplus.cc b/CompilerDriver/ccplus.cc
index bf6df0b..4cfd9de 100644
--- a/CompilerDriver/ccplus.cc
+++ b/CompilerDriver/ccplus.cc
@@ -336,8 +336,8 @@ public:
struct scope_type
{
std::vector<std::string> vals;
- int reg_cnt;
- int id;
+ int reg_cnt{ 0 };
+ int id{ 0 };
bool operator==(const scope_type& typ) { return typ.id == id; }
};