summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-24 14:30:00 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-24 14:30:00 +0000
commitf7adb3204e099ae5e65f3b8404bd5cf8cf784190 (patch)
tree72a841b03b6d9c8fcc722915aef429ec61fd3ccf /llvm/lib
parentacb5f8ecf7cc1056133fa1ab72ea90ce18a7f767 (diff)
downloadbcm5719-llvm-f7adb3204e099ae5e65f3b8404bd5cf8cf784190.tar.gz
bcm5719-llvm-f7adb3204e099ae5e65f3b8404bd5cf8cf784190.zip
Fix an assert to check exactly what it says.
llvm-svn: 130093
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index e255d50e236..11a014a071a 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -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;
OpenPOWER on IntegriCloud