diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 03:02:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 03:02:22 +0000 |
commit | e29cd6f24689e670730623f012586234527f6dc9 (patch) | |
tree | 9e349b3da4a246df062c56ad4f3fc571c69d911e /lib/Driver/Action.cpp | |
parent | 6d91b04c143e28c40f7141678a4802cd697faaa4 (diff) |
Driver: I was too hasty in free'ing Actions, we sometimes share
Actions so a simple tree traversal isn't quite good enough. Leaving a
FIXME for now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Action.cpp')
-rw-r--r-- | lib/Driver/Action.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Driver/Action.cpp b/lib/Driver/Action.cpp index 71bf22ffa1..cabc33eaec 100644 --- a/lib/Driver/Action.cpp +++ b/lib/Driver/Action.cpp @@ -13,9 +13,8 @@ using namespace clang::driver; Action::~Action() { - // Free the inputs. - for (iterator it = begin(), ie = end(); it != ie; ++it) - delete *it; + // FIXME: Free the inputs. The problem is that BindArchAction shares + // inputs; so we can't just walk the inputs. } const char *Action::getClassName(ActionClass AC) { |