summaryrefslogtreecommitdiff
path: root/lib/VMCore/AsmWriter.cpp
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
commit61717b3d94a74ad7bb3ade7ed4662921a4124fc8 (patch)
tree9beca0300d9f46a0b3b12f7345b5882dc298a274 /lib/VMCore/AsmWriter.cpp
parent4e699cf518ade469c353aadea1383285d94346b1 (diff)
downloadllvm-61717b3d94a74ad7bb3ade7ed4662921a4124fc8.tar.gz
llvm-61717b3d94a74ad7bb3ade7ed4662921a4124fc8.tar.bz2
llvm-61717b3d94a74ad7bb3ade7ed4662921a4124fc8.tar.xz
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
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index e255d50e23..11a014a071 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/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;