[PATCH] D100172: Fix static code analysis concerns with uninitialized variables
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 9 07:24:20 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5d7cb79416ad: RISCVABIInfo::classifyArgumentType: Fix static analyzer warnings with… (authored by Manna, committed by RKSimon).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100172/new/
https://reviews.llvm.org/D100172
Files:
clang/lib/CodeGen/TargetInfo.cpp
Index: clang/lib/CodeGen/TargetInfo.cpp
===================================================================
--- clang/lib/CodeGen/TargetInfo.cpp
+++ clang/lib/CodeGen/TargetInfo.cpp
@@ -10700,8 +10700,8 @@
llvm::Type *Field2Ty = nullptr;
CharUnits Field1Off = CharUnits::Zero();
CharUnits Field2Off = CharUnits::Zero();
- int NeededArgGPRs;
- int NeededArgFPRs;
+ int NeededArgGPRs = 0;
+ int NeededArgFPRs = 0;
bool IsCandidate =
detectFPCCEligibleStruct(Ty, Field1Ty, Field1Off, Field2Ty, Field2Off,
NeededArgGPRs, NeededArgFPRs);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100172.336449.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210409/3489cfe5/attachment.bin>
More information about the cfe-commits
mailing list