From: Justin Bogner Date: Mon, 13 Jan 2014 21:24:15 +0000 (+0000) Subject: CodeGen: Remove a superfluous setCurrentRegionCount X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1c6bf3d4bdcc6f5ff0e4218db985b65aca782d3;p=clang CodeGen: Remove a superfluous setCurrentRegionCount This call looks like it was an artifact of an earlier change, and doesn't actually make sense. We begin a new region immediately anyway, so it was mostly harmless. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199137 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index cbdd2fb6f3..ade6ac9185 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -1383,7 +1383,6 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { const SwitchCase *Case = 0; if (FindCaseStatementsForValue(S, ConstantCondValue, CaseStmts, getContext(), Case)) { - PGO.setCurrentRegionCount(0); if (Case) { RegionCounter CaseCnt = getPGORegionCounter(Case); CaseCnt.beginRegion(Builder);