Make assertion message more helpful in a case that might happen...
authorChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2003 21:57:00 +0000 (21:57 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2003 21:57:00 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7975 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/CommandLine.h
include/llvm/Support/CommandLine.h

index 410361797a5b733b0d5f8e43f1519dcc8297623e..dcd3b5ba511ee025096d059bb9f683fcfb732093 100644 (file)
@@ -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) {}
index 410361797a5b733b0d5f8e43f1519dcc8297623e..dcd3b5ba511ee025096d059bb9f683fcfb732093 100644 (file)
@@ -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) {}