summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/CommandLine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-19 21:57:00 +0000
committerChris Lattner <sabre@nondot.org>2003-08-19 21:57:00 +0000
commit9a4dbf6da0b70017cda813bc32b3fb07bfd5af01 (patch)
tree8e1ce52fc3cfdc7050f51ca2acf287388b554679 /llvm/include/Support/CommandLine.h
parent05c8f64b816fabff9aa3014104a17e0672d54561 (diff)
downloadbcm5719-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.h3
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) {}
OpenPOWER on IntegriCloud