diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-15 18:32:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-15 18:32:43 +0000 |
commit | 2bbc5a7e2cf6292ca246915510b22263e5f6901a (patch) | |
tree | ee188485d4a9131e2c64d9610e9d08087c539a79 /include | |
parent | 894b7f642c0b52f378cdd754c3aee38a7e3b49ec (diff) | |
download | llvm-2bbc5a7e2cf6292ca246915510b22263e5f6901a.tar.gz llvm-2bbc5a7e2cf6292ca246915510b22263e5f6901a.tar.bz2 llvm-2bbc5a7e2cf6292ca246915510b22263e5f6901a.tar.xz |
Use unique_ptr to manage ownership of child Regions within llvm::Region
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/RegionInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h index 6b43ae3124..82a788d1bb 100644 --- a/include/llvm/Analysis/RegionInfo.h +++ b/include/llvm/Analysis/RegionInfo.h @@ -33,6 +33,7 @@ #include "llvm/Analysis/PostDominators.h" #include "llvm/Support/Allocator.h" #include <map> +#include <memory> namespace llvm { @@ -213,7 +214,7 @@ class Region : public RegionNode { // (The entry BasicBlock is part of RegionNode) BasicBlock *exit; - typedef std::vector<Region*> RegionSet; + typedef std::vector<std::unique_ptr<Region>> RegionSet; // The subregions of this region. RegionSet children; |