fix some warnings for the MSVC build, by Yonggang Luo!
authorChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 17:35:42 +0000 (17:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 17:35:42 +0000 (17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16AsmPrinter.cpp
tools/llvm-stub/llvm-stub.c

index 7a5fdc853cda7f44614e27b8b67361e011706bc0..39ebfa4439905cd9cf8d01d91a56aec7391c6328 100644 (file)
@@ -35,7 +35,7 @@ using namespace llvm;
 PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
                                  const TargetAsmInfo *T, bool V)
 : AsmPrinter(O, TM, T, V), DbgInfo(O, T) {
-  PTLI = static_cast<const PIC16TargetLowering*>(TM.getTargetLowering());
+  PTLI = static_cast<PIC16TargetLowering*>(TM.getTargetLowering());
   PTAI = static_cast<const PIC16TargetAsmInfo*>(T);
   PTOF = (PIC16TargetObjectFile*)&PTLI->getObjFileLowering();
 }
index e5624a9c9b0948136969415ca91f8983cfc0cf89..366e13c9102353fbd5841b3fe6be6d21e514b7f8 100644 (file)
@@ -64,8 +64,7 @@ int main(int argc, char** argv) {
   memcpy(Args+2, argv+1, sizeof(char*)*argc);
 
   /* Run the JIT. */
-  execvp(Interp, (char *const*)Args);
-
+  execvp(Interp, (char **)Args);
   /* if _execv returns, the JIT could not be started. */
   fprintf(stderr, "Could not execute the LLVM JIT.  Either add 'lli' to your"
           " path, or set the\ninterpreter you want to use in the LLVMINTERP "