diff options
author | Artem Belevich <tra@google.com> | 2015-07-20 20:02:54 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-07-20 20:02:54 +0000 |
commit | 5bde4e051ec9e777b694daf785d46d8a26dc1ace (patch) | |
tree | 52ad0853bef1fc581ffde4e9dd44611fd866d843 /clang/lib/Driver/Action.cpp | |
parent | edd9b6ef36f8f9f480eb3e72d6eb9794ef0ef656 (diff) | |
download | bcm5719-llvm-5bde4e051ec9e777b694daf785d46d8a26dc1ace.tar.gz bcm5719-llvm-5bde4e051ec9e777b694daf785d46d8a26dc1ace.zip |
Fixed style issues pointed out by Justin Bogner.
Differential Revision: http://reviews.llvm.org/D11273
llvm-svn: 242698
Diffstat (limited to 'clang/lib/Driver/Action.cpp')
-rw-r--r-- | clang/lib/Driver/Action.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Driver/Action.cpp b/clang/lib/Driver/Action.cpp index 0721d2f17ac..49dccd224bf 100644 --- a/clang/lib/Driver/Action.cpp +++ b/clang/lib/Driver/Action.cpp @@ -65,13 +65,12 @@ CudaDeviceAction::CudaDeviceAction(std::unique_ptr<Action> Input, void CudaHostAction::anchor() {} CudaHostAction::CudaHostAction(std::unique_ptr<Action> Input, - const ActionList &_DeviceActions) - : Action(CudaHostClass, std::move(Input)), DeviceActions(_DeviceActions) {} + const ActionList &DeviceActions) + : Action(CudaHostClass, std::move(Input)), DeviceActions(DeviceActions) {} CudaHostAction::~CudaHostAction() { - for (iterator it = DeviceActions.begin(), ie = DeviceActions.end(); it != ie; - ++it) - delete *it; + for (auto &DA : DeviceActions) + delete DA; } void JobAction::anchor() {} |