llvm.org GIT mirror llvm / 61717b3
Fix an assert to check exactly what it says. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130093 91177308-0d34-0410-b5e6-96231b3b80d8 Jay Foad 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8787 /// prefixed with % (if the string only contains simple characters) or is
8888 /// surrounded with ""'s (if it has special chars in it). Print it out.
8989 static void PrintLLVMName(raw_ostream &OS, StringRef Name, PrefixType Prefix) {
90 assert(Name.data() && "Cannot get empty name!");
90 assert(!Name.empty() && "Cannot get empty name!");
9191 switch (Prefix) {
9292 default: llvm_unreachable("Bad prefix!");
9393 case NoPrefix: break;