[llvm-commits] [llvm] r139456 - in /llvm/trunk/lib: ExecutionEngine/MCJIT/MCJIT.cpp Target/X86/X86ELFWriterInfo.cpp
Richard Trieu
rtrieu at google.com
Fri Sep 9 18:42:07 PDT 2011
Author: rtrieu
Date: Fri Sep 9 20:42:07 2011
New Revision: 139456
URL: http://llvm.org/viewvc/llvm-project?rev=139456&view=rev
Log:
Fix the asserts in lib/Target/X86/X86ELFWriterInfo.cpp and
lib/ExecutionEngine/MCJIT/MCJIT.cpp from:
assert("error");
to:
assert(0 && "error");
Modified:
llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/trunk/lib/Target/X86/X86ELFWriterInfo.cpp
Modified: llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp?rev=139456&r1=139455&r2=139456&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp Fri Sep 9 20:42:07 2011
@@ -216,6 +216,6 @@
}
}
- assert("Full-featured argument passing not supported yet!");
+ assert(0 && "Full-featured argument passing not supported yet!");
return GenericValue();
}
Modified: llvm/trunk/lib/Target/X86/X86ELFWriterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ELFWriterInfo.cpp?rev=139456&r1=139455&r2=139456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ELFWriterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ELFWriterInfo.cpp Fri Sep 9 20:42:07 2011
@@ -147,7 +147,7 @@
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;
}
More information about the llvm-commits
mailing list