llvm.org GIT mirror llvm / 3c7eb1f
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 Chris Lattner 16 years ago
2 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
641641
642642 void check() {
643643 assert(Location != 0 && "cl::location(...) not specified for a command "
644 "line option with external storage!");
644 "line option with external storage, "
645 "or cl::init specified before cl::location()!!");
645646 }
646647 public:
647648 opt_storage() : Location(0) {}
641641
642642 void check() {
643643 assert(Location != 0 && "cl::location(...) not specified for a command "
644 "line option with external storage!");
644 "line option with external storage, "
645 "or cl::init specified before cl::location()!!");
645646 }
646647 public:
647648 opt_storage() : Location(0) {}