aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/CommandLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 3b4eda5..d3023e5 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -915,7 +915,7 @@ class list : public Option, public list_storage<DataType, Storage> {
public:
ParserClass &getParser() { return Parser; }
- unsigned getPosition(unsigned optnum) {
+ unsigned getPosition(unsigned optnum) const {
assert(optnum < this->size() && "Invalid option index");
return Positions[optnum];
}