[llvm] 746a2c3 - [ObjCARC] Initialize return value
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 11:06:40 PDT 2020
Author: Arthur Eubanks
Date: 2020-09-21T11:03:44-07:00
New Revision: 746a2c3775658c4485a8e71a7d46ee55c30615b8
URL: https://github.com/llvm/llvm-project/commit/746a2c3775658c4485a8e71a7d46ee55c30615b8
DIFF: https://github.com/llvm/llvm-project/commit/746a2c3775658c4485a8e71a7d46ee55c30615b8.diff
LOG: [ObjCARC] Initialize return value
Mistakenly removed initialization of `Changed` in https://reviews.llvm.org/D87806.
Added:
Modified:
llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
index db4fd667e8ae..2b0435367e28 100644
--- a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
+++ b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
@@ -574,6 +574,7 @@ bool ObjCARCContract::run(Function &F, AAResults *A, DominatorTree *D) {
if (!Run)
return false;
+ Changed = false;
AA = A;
DT = D;
PA.setAA(A);
More information about the llvm-commits
mailing list