[PATCH] D146847: [NFC] Fix uninitialized member variable use in RVVEmitter::createRVVIntrinsics()
Sindhu Chittireddy via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 24 14:19:22 PDT 2023
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146847.508213.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230324/666ed93d/attachment.bin>
More information about the cfe-commits
mailing list