Fix the asserts in lib/Target/X86/X86ELFWriterInfo.cpp and
authorRichard Trieu <rtrieu@google.com>
Sat, 10 Sep 2011 01:42:07 +0000 (01:42 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 10 Sep 2011 01:42:07 +0000 (01:42 +0000)
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

lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/Target/X86/X86ELFWriterInfo.cpp

index 561c1504b157956bcc89027dd519ec6b36d1b789..6b8a388186c7aa971b5f496042c88b850cd66c88 100644 (file)
@@ -216,6 +216,6 @@ GenericValue MCJIT::runFunction(Function *F,
     }
   }
 
-  assert("Full-featured argument passing not supported yet!");
+  assert(0 && "Full-featured argument passing not supported yet!");
   return GenericValue();
 }
index f1d7edea7210a909762025dfe5eef5d6c869a755..4a72d154c335e6528781657df952912e3d8a6218 100644 (file)
@@ -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;
 }