[cfe-commits] r137849 - /cfe/trunk/lib/Driver/Tools.cpp

Chad Rosier mcrosier at apple.com
Wed Aug 17 11:51:56 PDT 2011


Author: mcrosier
Date: Wed Aug 17 13:51:56 2011
New Revision: 137849

URL: http://llvm.org/viewvc/llvm-project?rev=137849&view=rev
Log:
Fix iterator end for r137842.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=137849&r1=137848&r2=137849&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Aug 17 13:51:56 2011
@@ -2451,7 +2451,7 @@
        it != ie;) {
     if (!strcmp(*it, "-Wno-self-assign")) {
       it = CmdArgs.erase(it);
-      it = CmdArgs.end();
+      ie = CmdArgs.end();
     }
     else
       ++it;





More information about the cfe-commits mailing list