projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e9b0c
)
IfConverter::MeetIfcvtSizeLimit - Fix uninitialized variable warnings. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Sat, 15 May 2021 13:51:37 +0000
(14:51 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Sat, 15 May 2021 13:51:54 +0000
(14:51 +0100)
Ensure the duplication instruction counts are initialized to zero (even though they aren't used) to silence static analysis warnings.
llvm/lib/CodeGen/IfConversion.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/IfConversion.cpp
b/llvm/lib/CodeGen/IfConversion.cpp
index
aa489d0
..
bb89dca
100644
(file)
--- a/
llvm/lib/CodeGen/IfConversion.cpp
+++ b/
llvm/lib/CodeGen/IfConversion.cpp
@@
-300,7
+300,7
@@
namespace {
MachineBasicBlock::iterator TIE = TBBInfo.BB->end();
MachineBasicBlock::iterator FIE = FBBInfo.BB->end();
- unsigned Dups1
, Dups2
;
+ unsigned Dups1
= 0, Dups2 = 0
;
if (!CountDuplicatedInstructions(TIB, FIB, TIE, FIE, Dups1, Dups2,
*TBBInfo.BB, *FBBInfo.BB,
/*SkipUnconditionalBranches*/ true))