]> granicus.if.org Git - clang/commitdiff
CodeGen: Remove a superfluous setCurrentRegionCount
authorJustin Bogner <mail@justinbogner.com>
Mon, 13 Jan 2014 21:24:15 +0000 (21:24 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 13 Jan 2014 21:24:15 +0000 (21:24 +0000)
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

lib/CodeGen/CGStmt.cpp

index cbdd2fb6f3d78d55ada2e8d4548d3f62140694ed..ade6ac91852e0a4124beb0b655102027dde10f39 100644 (file)
@@ -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);