From 5a459f8249e02bfc09aff0c0e8d33a9e1866dd8c Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 23 Feb 2016 19:30:43 +0000 Subject: Rename Action::begin() to Action::input_begin(). Also introduce inputs() that reutnrs an llvm::iterator_range. Iterating over A->inputs() is much less mysterious than iterating over *A. No intended behavior change. llvm-svn: 261674 --- clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp') diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp index 30191642256..6c44932f55e 100644 --- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -70,7 +70,7 @@ clang::createInvocationFromCommandLine(ArrayRef ArgList, for (auto &A : C->getActions()){ // On MacOSX real actions may end up being wrapped in BindArchAction if (isa(A)) - A = *A->begin(); + A = *A->input_begin(); if (isa(A)) { CudaCompilation = true; break; -- cgit v1.2.3