Fix improperly formed assert() call.
authorJim Grosbach <grosbach@apple.com>
Mon, 17 Oct 2011 20:22:59 +0000 (20:22 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 17 Oct 2011 20:22:59 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142239 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MBlaze/MBlazeELFWriterInfo.cpp

index 3f26ed15b284e6095e9b67dcd564471003637db1..ad9247df50b6812a7317a16a103dc7c804f20aa7 100644 (file)
@@ -105,7 +105,7 @@ long int MBlazeELFWriterInfo::computeRelocation(unsigned SymOffset,
   if (RelTy == ELF::R_MICROBLAZE_32_PCREL || ELF::R_MICROBLAZE_64_PCREL)
     return SymOffset - (RelOffset + 4);
   else
-    assert("computeRelocation unknown for this relocation type");
+    assert(0 && "computeRelocation unknown for this relocation type");
 
   return 0;
 }