diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp --- a/llvm/lib/Analysis/BranchProbabilityInfo.cpp +++ b/llvm/lib/Analysis/BranchProbabilityInfo.cpp @@ -1178,7 +1178,7 @@ PostDominatedByUnreachable.clear(); PostDominatedByColdCall.clear(); - SccI.release(); + SccI.reset(); if (PrintBranchProb && (PrintBranchProbFuncName.empty() ||