Fixing the polly build.
authorChris Bieneman <beanz@apple.com>
Thu, 28 May 2015 21:51:52 +0000 (21:51 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 28 May 2015 21:51:52 +0000 (21:51 +0000)
I broke the polly build in r238505. This fixes the failure by adding non-const iterator erase methods to cl::list_storage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238509 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index 324db6e9e8492943f14971fb939deac247c6a7f6..c6d430115427e38ff9dd6f8284a3e82ddb2935e4 100644 (file)
@@ -1323,6 +1323,11 @@ public:
     return Storage.erase(first, last);
   }
 
+  iterator erase(iterator pos) { return Storage.erase(pos); }
+  iterator erase(iterator first, iterator last) {
+    return Storage.erase(first, last);
+  }
+
   iterator insert(const_iterator pos, const DataType &value) {
     return Storage.insert(pos, value);
   }