diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-19 21:57:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-19 21:57:00 +0000 |
commit | 3c7eb1f2ea231c046367023576311fbc4b1270e3 (patch) | |
tree | 6694a32f3967cc258bc70f567de351403ab52437 /include/Support | |
parent | 08e247679f7e3f689f015c4f912bcb91bdd6adb3 (diff) |
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
Diffstat (limited to 'include/Support')
-rw-r--r-- | include/Support/CommandLine.h | 3 |
1 files changed, 2 insertions, 1 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) {} |