schittir created this revision.
schittir added reviewers: tahonermann, shafik, aaron.ballman.
Herald added subscribers: luke, frasercrmck, luismarques, apazos, 
sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, 
MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, 
simoncook, johnrusso, rbar, asb.
Herald added a project: All.
schittir requested review of this revision.
Herald added subscribers: pcwang-thead, MaskRay.
Herald added a project: clang.

Found by Coverity static analysis tool.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146847

Files:
  clang/utils/TableGen/RISCVVEmitter.cpp


Index: clang/utils/TableGen/RISCVVEmitter.cpp
===================================================================
--- clang/utils/TableGen/RISCVVEmitter.cpp
+++ clang/utils/TableGen/RISCVVEmitter.cpp
@@ -58,7 +58,7 @@
   SmallVector<PrototypeDescriptor> OverloadedSuffix;
 
   // BitMask for supported policies.
-  uint16_t PolicyBitMask;
+  uint16_t PolicyBitMask = 0;
 
   // Number of field, large than 1 if it's segment load/store.
   unsigned NF;


Index: clang/utils/TableGen/RISCVVEmitter.cpp
===================================================================
--- clang/utils/TableGen/RISCVVEmitter.cpp
+++ clang/utils/TableGen/RISCVVEmitter.cpp
@@ -58,7 +58,7 @@
   SmallVector<PrototypeDescriptor> OverloadedSuffix;
 
   // BitMask for supported policies.
-  uint16_t PolicyBitMask;
+  uint16_t PolicyBitMask = 0;
 
   // Number of field, large than 1 if it's segment load/store.
   unsigned NF;
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to