diff options
author | Richard Trieu <rtrieu@google.com> | 2011-09-10 01:42:07 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-09-10 01:42:07 +0000 |
commit | 81cbb0ad608af0839471b8d41ceac64047b41d68 (patch) | |
tree | fd4fd73b302af57527d998cb6dc6910428b5ac6b /lib/Target/X86/X86ELFWriterInfo.cpp | |
parent | 2db8628085e92dc76852a922ab50bd3b76a5824f (diff) | |
download | external_llvm-81cbb0ad608af0839471b8d41ceac64047b41d68.zip external_llvm-81cbb0ad608af0839471b8d41ceac64047b41d68.tar.gz external_llvm-81cbb0ad608af0839471b8d41ceac64047b41d68.tar.bz2 |
Fix the asserts in lib/Target/X86/X86ELFWriterInfo.cpp and
lib/ExecutionEngine/MCJIT/MCJIT.cpp from:
assert("error");
to:
assert(0 && "error");
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86ELFWriterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ELFWriterInfo.cpp b/lib/Target/X86/X86ELFWriterInfo.cpp index f1d7ede..4a72d15 100644 --- a/lib/Target/X86/X86ELFWriterInfo.cpp +++ b/lib/Target/X86/X86ELFWriterInfo.cpp @@ -147,7 +147,7 @@ long int X86ELFWriterInfo::computeRelocation(unsigned SymOffset, if (RelTy == ELF::R_X86_64_PC32 || RelTy == ELF::R_386_PC32) return SymOffset - (RelOffset + 4); else - assert("computeRelocation unknown for this relocation type"); + assert(0 && "computeRelocation unknown for this relocation type"); return 0; } |