Make assertion message more helpful in a case that might happen...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-19 21:57:00 +00:00
parent 08e247679f
commit 3c7eb1f2ea
2 changed files with 4 additions and 2 deletions

View File

@ -642,7 +642,8 @@ class opt_storage {
void check() {
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()!!");
}
public:
opt_storage() : Location(0) {}

View File

@ -642,7 +642,8 @@ class opt_storage {
void check() {
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()!!");
}
public:
opt_storage() : Location(0) {}