diff options
-rw-r--r-- | include/Support/CommandLine.h | 3 | ||||
-rw-r--r-- | include/llvm/Support/CommandLine.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h index 410361797a..dcd3b5ba51 100644 --- a/include/Support/CommandLine.h +++ b/include/Support/CommandLine.h @@ -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) {} diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 410361797a..dcd3b5ba51 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -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) {} |