Skip to content

Commit

Permalink
fix some warnings for the MSVC build, by Yonggang Luo!
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78571 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 10, 2009
1 parent eb1fedc commit 12b2bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Target/PIC16/PIC16AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 1 addition & 2 deletions tools/llvm-stub/llvm-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 12b2bda

Please sign in to comment.