Constify check. This fixes PR3900.
authorBill Wendling <isanbard@gmail.com>
Sun, 29 Mar 2009 20:08:56 +0000 (20:08 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 29 Mar 2009 20:08:56 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68013 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index 12eb3a5f7a5744e7548ccfed04bc945117ff82d8..4a7c8c81196edb0b10b78d9de226504e4ab587a3 100644 (file)
@@ -744,7 +744,7 @@ template<class DataType, bool ExternalStorage, bool isClass>
 class opt_storage {
   DataType *Location;   // Where to store the object...
 
-  void check() {
+  void check() const {
     assert(Location != 0 && "cl::location(...) not specified for a command "
            "line option with external storage, "
            "or cl::init specified before cl::location()!!");