[PATCH] D150960: [NFC] Fix uninitialized scalar variable found by Coverity static analyzer tool
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 19 05:04:21 PDT 2023
Manna updated this revision to Diff 523735.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150960/new/
https://reviews.llvm.org/D150960
Files:
llvm/include/llvm/Demangle/MicrosoftDemangle.h
Index: llvm/include/llvm/Demangle/MicrosoftDemangle.h
===================================================================
--- llvm/include/llvm/Demangle/MicrosoftDemangle.h
+++ llvm/include/llvm/Demangle/MicrosoftDemangle.h
@@ -114,7 +114,7 @@
struct BackrefContext {
static constexpr size_t Max = 10;
- TypeNode *FunctionParams[Max];
+ TypeNode *FunctionParams[Max] = { 0 };
size_t FunctionParamCount = 0;
// The first 10 BackReferences in a mangled name can be back-referenced by
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150960.523735.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230519/b26013dc/attachment.bin>
More information about the cfe-commits
mailing list