summaryrefslogtreecommitdiff
path: root/include/llvm/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
commit3c7eb1f2ea231c046367023576311fbc4b1270e3 (patch)
tree6694a32f3967cc258bc70f567de351403ab52437 /include/llvm/Support/CommandLine.h
parent08e247679f7e3f689f015c4f912bcb91bdd6adb3 (diff)
downloadllvm-3c7eb1f2ea231c046367023576311fbc4b1270e3.tar.gz
llvm-3c7eb1f2ea231c046367023576311fbc4b1270e3.tar.bz2
llvm-3c7eb1f2ea231c046367023576311fbc4b1270e3.tar.xz
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/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h3
1 files changed, 2 insertions, 1 deletions
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) {}