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 | 9a4dbf6da0b70017cda813bc32b3fb07bfd5af01 (patch) | |
| tree | 8e1ce52fc3cfdc7050f51ca2acf287388b554679 /llvm/include/Support/CommandLine.h | |
| parent | 05c8f64b816fabff9aa3014104a17e0672d54561 (diff) | |
| download | bcm5719-llvm-9a4dbf6da0b70017cda813bc32b3fb07bfd5af01.tar.gz bcm5719-llvm-9a4dbf6da0b70017cda813bc32b3fb07bfd5af01.zip | |
Make assertion message more helpful in a case that might happen...
llvm-svn: 7975
Diffstat (limited to 'llvm/include/Support/CommandLine.h')
| -rw-r--r-- | llvm/include/Support/CommandLine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/Support/CommandLine.h b/llvm/include/Support/CommandLine.h index 410361797a5..dcd3b5ba511 100644 --- a/llvm/include/Support/CommandLine.h +++ b/llvm/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) {} |

