Fix an assert to check exactly what it says.

llvm-svn: 130093
This commit is contained in:
Jay Foad 2011-04-24 14:30:00 +00:00
parent acb5f8ecf7
commit f7adb3204e
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ enum PrefixType {
/// prefixed with % (if the string only contains simple characters) or is
/// surrounded with ""'s (if it has special chars in it). Print it out.
static void PrintLLVMName(raw_ostream &OS, StringRef Name, PrefixType Prefix) {
assert(Name.data() && "Cannot get empty name!");
assert(!Name.empty() && "Cannot get empty name!");
switch (Prefix) {
default: llvm_unreachable("Bad prefix!");
case NoPrefix: break;