From 9a4dbf6da0b70017cda813bc32b3fb07bfd5af01 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Aug 2003 21:57:00 +0000 Subject: [PATCH] Make assertion message more helpful in a case that might happen... llvm-svn: 7975 --- llvm/include/Support/CommandLine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/Support/CommandLine.h b/llvm/include/Support/CommandLine.h index 410361797a5b..dcd3b5ba511e 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) {} -- GitLab