From: Bill Wendling Date: Sun, 29 Mar 2009 20:08:56 +0000 (+0000) Subject: Constify check. This fixes PR3900. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=31fd5a571eb8048a1084dd8e20a49dd0785de11a;p=oota-llvm.git Constify check. This fixes PR3900. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68013 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 12eb3a5f7a5..4a7c8c81196 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -744,7 +744,7 @@ template 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()!!");