We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88b2c8 commit c277b3fCopy full SHA for c277b3f
llvm/include/llvm/Analysis/LoopInfo.h
@@ -514,14 +514,12 @@ class LoopInfoBase {
514
Arg.TopLevelLoops.clear();
515
}
516
LoopInfoBase &operator=(LoopInfoBase &&RHS) {
517
- if (&RHS != this) {
518
- BBMap = std::move(RHS.BBMap);
+ BBMap = std::move(RHS.BBMap);
519
520
- for (auto *L : TopLevelLoops)
521
- delete L;
522
- TopLevelLoops = std::move(RHS.TopLevelLoops);
523
- RHS.TopLevelLoops.clear();
524
- }
+ for (auto *L : TopLevelLoops)
+ delete L;
+ TopLevelLoops = std::move(RHS.TopLevelLoops);
+ RHS.TopLevelLoops.clear();
525
return *this;
526
527
0 commit comments