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 | 74996f2a798d8ba39f35645f263fce629655260b (patch) | |
| tree | 41f21b78ff61c5b03e103586e752fda0fe75b05e /llvm/lib/Target | |
| parent | e5e7e6bc84a5d0b2ef68163640c09c303958649d (diff) | |
| download | bcm5719-llvm-74996f2a798d8ba39f35645f263fce629655260b.tar.gz bcm5719-llvm-74996f2a798d8ba39f35645f263fce629655260b.zip | |
Fix the asserts in lib/Target/X86/X86ELFWriterInfo.cpp and
lib/ExecutionEngine/MCJIT/MCJIT.cpp from:
assert("error");
to:
assert(0 && "error");
llvm-svn: 139456
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86ELFWriterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp index f1d7edea721..4a72d154c33 100644 --- a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp +++ b/llvm/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; } |

