diff options
author | Nala Ginrut <mulei@gnu.org> | 2020-05-21 00:59:18 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:14 +0000 |
commit | f641587ed0683d6ff2479f59576f4c95eac2bf61 (patch) | |
tree | 604866f80e448f86c123db1fcf0cbf4194e3cb12 | |
parent | 323caf74be53f9ce14b407b19b3a40ab15eec70f (diff) | |
download | gcc-f641587ed0683d6ff2479f59576f4c95eac2bf61.zip gcc-f641587ed0683d6ff2479f59576f4c95eac2bf61.tar.gz gcc-f641587ed0683d6ff2479f59576f4c95eac2bf61.tar.bz2 |
Remove scoping in TypeResolution destructor
-rw-r--r-- | gcc/rust/analysis/rust-type-resolution.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/rust/analysis/rust-type-resolution.cc b/gcc/rust/analysis/rust-type-resolution.cc index 64296d0..f79da50 100644 --- a/gcc/rust/analysis/rust-type-resolution.cc +++ b/gcc/rust/analysis/rust-type-resolution.cc @@ -43,12 +43,7 @@ TypeResolution::TypeResolution (AST::Crate &crate, TopLevelScan &toplevel) ADD_BUILTIN_TYPE ("bool", typeScope); } -TypeResolution::~TypeResolution () -{ - functionScope.Pop (); - typeScope.Pop (); - scope.Pop (); -} +TypeResolution::~TypeResolution () { functionScope.Pop (); } bool TypeResolution::Resolve (AST::Crate &crate, TopLevelScan &toplevel) |