Skip to content

Commit 107f576

Browse files
author
Reid Spencer
committed
Make a const method const
llvm-svn: 18524
1 parent d78077d commit 107f576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/CommandLine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ class list : public Option, public list_storage<DataType, Storage> {
915915
public:
916916
ParserClass &getParser() { return Parser; }
917917

918-
unsigned getPosition(unsigned optnum) {
918+
unsigned getPosition(unsigned optnum) const {
919919
assert(optnum < this->size() && "Invalid option index");
920920
return Positions[optnum];
921921
}

0 commit comments

Comments
 (0)