Skip to content

Commit 833ba0a

Browse files
authored
[ObjC][ARC] Initialize member of ObjCARCContract (#125256)
This fixes a bug where hasCFGChanged was called before CFGChanged had been initialized. rdar://142842745
1 parent b25fe9c commit 833ba0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace {
6464

6565
class ObjCARCContract {
6666
bool Changed;
67-
bool CFGChanged;
67+
bool CFGChanged = false;
6868
AAResults *AA;
6969
DominatorTree *DT;
7070
ProvenanceAnalysis PA;

0 commit comments

Comments
 (0)