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 | 31fd5a571eb8048a1084dd8e20a49dd0785de11a (patch) | |
tree | af0c6fb7b496d752969723f78b284cd3ad4eedc3 | |
parent | 807117dc5684f32325ae0e7b9eddb02e1c40ff57 (diff) | |
download | external_llvm-31fd5a571eb8048a1084dd8e20a49dd0785de11a.zip external_llvm-31fd5a571eb8048a1084dd8e20a49dd0785de11a.tar.gz external_llvm-31fd5a571eb8048a1084dd8e20a49dd0785de11a.tar.bz2 |
Constify check. This fixes PR3900.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68013 91177308-0d34-0410-b5e6-96231b3b80d8
-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()!!"); |