From 31fd5a571eb8048a1084dd8e20a49dd0785de11a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 29 Mar 2009 20:08:56 +0000 Subject: Constify check. This fixes PR3900. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68013 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CommandLine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 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()!!"); -- cgit v1.1