summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-02-23 19:30:43 +0000
committerNico Weber <nicolasweber@gmx.de>2016-02-23 19:30:43 +0000
commit5a459f8249e02bfc09aff0c0e8d33a9e1866dd8c (patch)
treee97a6130a9d7b0f80357b229e556547c5152f1f6 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent4594606c00ae149d2c85a2d53d2489ac1a564835 (diff)
downloadbcm5719-llvm-5a459f8249e02bfc09aff0c0e8d33a9e1866dd8c.tar.gz
bcm5719-llvm-5a459f8249e02bfc09aff0c0e8d33a9e1866dd8c.zip
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
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r--clang/lib/Frontend/CreateInvocationFromCommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
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<const char *> ArgList,
for (auto &A : C->getActions()){
// On MacOSX real actions may end up being wrapped in BindArchAction
if (isa<driver::BindArchAction>(A))
- A = *A->begin();
+ A = *A->input_begin();
if (isa<driver::CudaDeviceAction>(A)) {
CudaCompilation = true;
break;
OpenPOWER on IntegriCloud