diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-03-29 20:08:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-03-29 20:08:56 +0000 |
commit | b6f89d8eb440c64a8e6663fa9bcd8ee989fe1782 (patch) | |
tree | af0c6fb7b496d752969723f78b284cd3ad4eedc3 /include/llvm/Support/CommandLine.h | |
parent | de8db58474f5bfd54bdcac1587d5a42d8679a015 (diff) | |
download | external_llvm-b6f89d8eb440c64a8e6663fa9bcd8ee989fe1782.zip external_llvm-b6f89d8eb440c64a8e6663fa9bcd8ee989fe1782.tar.gz external_llvm-b6f89d8eb440c64a8e6663fa9bcd8ee989fe1782.tar.bz2 |
Constify check. This fixes PR3900.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 12eb3a5..4a7c8c8 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -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()!!"); |