diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-20 10:33:40 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-20 10:33:40 +0000 |
commit | 01694c340db83741cb50e6586f167e3d0d1f55cb (patch) | |
tree | 7f12f9307bdcb182d096a0ffd6be151db61881e3 /clang/lib/CodeGen/CodeGenPGO.cpp | |
parent | 25a63b1bccdf0865d609974599d603b782cbaabb (diff) | |
download | bcm5719-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.cpp | 3 |
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()); |