[llvm-commits] [llvm] r142239 - /llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp

Jim Grosbach grosbach at apple.com
Mon Oct 17 13:22:59 PDT 2011


Author: grosbach
Date: Mon Oct 17 15:22:59 2011
New Revision: 142239

URL: http://llvm.org/viewvc/llvm-project?rev=142239&view=rev
Log:
Fix improperly formed assert() call.

Modified:
    llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp

Modified: llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp?rev=142239&r1=142238&r2=142239&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp Mon Oct 17 15:22:59 2011
@@ -105,7 +105,7 @@
   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;
 }





More information about the llvm-commits mailing list