[llvm-commits] [llvm] r68013 - /llvm/trunk/include/llvm/Support/CommandLine.h
Bill Wendling
isanbard at gmail.com
Sun Mar 29 13:09:08 PDT 2009
Author: void
Date: Sun Mar 29 15:08:56 2009
New Revision: 68013
URL: http://llvm.org/viewvc/llvm-project?rev=68013&view=rev
Log:
Constify check. This fixes PR3900.
Modified:
llvm/trunk/include/llvm/Support/CommandLine.h
Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=68013&r1=68012&r2=68013&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Sun Mar 29 15:08:56 2009
@@ -744,7 +744,7 @@
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()!!");
More information about the llvm-commits
mailing list