Skip to content

Commit f7990c3

Browse files
committed
updates
1 parent 1aeece3 commit f7990c3

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,20 @@ class CHR {
296296
delete Scope;
297297
}
298298
}
299+
CHR(const CHR &) = delete;
300+
CHR &operator=(const CHR &) = delete;
299301

300302
bool run();
301303

302304
private:
303-
CHR(const CHR &) = delete;
304-
CHR &operator=(const CHR &) = delete;
305+
// See the comments in CHR::run() for the high level flow of the algorithm and
306+
// what the following functions do.
305307

306-
// See the comments in CHR::run() for the high level flow of the algorithm
307-
// and what the following functions do.
308-
309-
void findScopes(SmallVectorImpl<CHRScope *> &Output) {
310-
Region *R = RI.getTopLevelRegion();
311-
if (CHRScope *Scope = findScopes(R, nullptr, nullptr, Output)) {
312-
Output.push_back(Scope);
313-
}
308+
void findScopes(SmallVectorImpl<CHRScope *> &Output) {
309+
Region *R = RI.getTopLevelRegion();
310+
if (CHRScope *Scope = findScopes(R, nullptr, nullptr, Output)) {
311+
Output.push_back(Scope);
312+
}
314313
}
315314
CHRScope *findScopes(Region *R, Region *NextRegion, Region *ParentRegion,
316315
SmallVectorImpl<CHRScope *> &Scopes);

0 commit comments

Comments
 (0)