From 9cc5055248bdde9e0f61dfa818bfd0be7a347afd Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 28 May 2015 21:51:52 +0000 Subject: [PATCH] Fixing the polly build. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 324db6e9e84..c6d43011542 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -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); } -- 2.34.1