summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-03-20 10:33:40 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-03-20 10:33:40 +0000
commit01694c340db83741cb50e6586f167e3d0d1f55cb (patch)
tree7f12f9307bdcb182d096a0ffd6be151db61881e3 /clang/lib/CodeGen/CodeGenPGO.cpp
parent25a63b1bccdf0865d609974599d603b782cbaabb (diff)
downloadbcm5719-llvm-01694c340db83741cb50e6586f167e3d0d1f55cb.tar.gz
bcm5719-llvm-01694c340db83741cb50e6586f167e3d0d1f55cb.zip
P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ.
llvm-svn: 263895
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp
index 2d46adfce13..5b8e3427136 100644
--- a/clang/lib/CodeGen/CodeGenPGO.cpp
+++ b/clang/lib/CodeGen/CodeGenPGO.cpp
@@ -409,7 +409,8 @@ struct ComputeRegionCounts : public ConstStmtVisitor<ComputeRegionCounts> {
RecordStmtCount(S);
Visit(S->getLoopVarStmt());
Visit(S->getRangeStmt());
- Visit(S->getBeginEndStmt());
+ Visit(S->getBeginStmt());
+ Visit(S->getEndStmt());
uint64_t ParentCount = CurrentCount;
BreakContinueStack.push_back(BreakContinue());
OpenPOWER on IntegriCloud