summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-17 20:22:59 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-17 20:22:59 +0000
commit32ab4aff69f4bb51cdd9196800da485f094a5ccb (patch)
tree06b8d5ab266217ec6e5128fc4dcab84d09fad2fa
parent1130a799ab2fd7042625163a2506518960394884 (diff)
downloadllvm-32ab4aff69f4bb51cdd9196800da485f094a5ccb.tar.gz
llvm-32ab4aff69f4bb51cdd9196800da485f094a5ccb.tar.bz2
llvm-32ab4aff69f4bb51cdd9196800da485f094a5ccb.tar.xz
Fix improperly formed assert() call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142239 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/MBlaze/MBlazeELFWriterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp b/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
index 3f26ed15b2..ad9247df50 100644
--- a/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
+++ b/lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
@@ -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;
}