From e7fffa14dc50091200b778a747acad15a254626c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 12 Mar 2009 08:45:11 +0000 Subject: [PATCH] Driver: Fix thinko in Arg::hasArg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66785 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ArgList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 6a056074b7..aaba406f14 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -34,7 +34,7 @@ bool ArgList::hasArg(options::ID Id) const { // FIXME: Make search efficient? // FIXME: This needs to not require loading of the option. - for (const_iterator it = begin(), ie = end(); it != ie; ++ie) + for (const_iterator it = begin(), ie = end(); it != ie; ++it) if ((*it)->getOption().matches(Id)) return true; -- 2.40.0