1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Constify check. This fixes PR3900.

llvm-svn: 68013
This commit is contained in:
Bill Wendling 2009-03-29 20:08:56 +00:00
parent d24f576124
commit 668e03b2b8

View File

@ -744,7 +744,7 @@ template<class DataType, bool ExternalStorage, bool isClass>
class opt_storage { class opt_storage {
DataType *Location; // Where to store the object... DataType *Location; // Where to store the object...
void check() { void check() const {
assert(Location != 0 && "cl::location(...) not specified for a command " assert(Location != 0 && "cl::location(...) not specified for a command "
"line option with external storage, " "line option with external storage, "
"or cl::init specified before cl::location()!!"); "or cl::init specified before cl::location()!!");