diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-01-13 21:24:15 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-01-13 21:24:15 +0000 |
commit | 4afcd10e085bffac50aa5ef139cb3eb2c1b295dc (patch) | |
tree | 582cad6f700bd62d63e479d707283d53f3d3fcff /clang/lib/CodeGen/CGStmt.cpp | |
parent | 2f6b404a1489367ce13a20dcdabe41d27d42f1b8 (diff) | |
download | bcm5719-llvm-4afcd10e085bffac50aa5ef139cb3eb2c1b295dc.tar.gz bcm5719-llvm-4afcd10e085bffac50aa5ef139cb3eb2c1b295dc.zip |
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.
llvm-svn: 199137
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index cbdd2fb6f3d..ade6ac91852 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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); |