fix a casting problem on the llvm-x86_64-linux tester
authorChris Lattner <sabre@nondot.org>
Tue, 28 Jul 2009 03:20:34 +0000 (03:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Jul 2009 03:20:34 +0000 (03:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77295 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16AsmPrinter.cpp

index 7fad6f315683a35337a4e638d484a7c90abf4286..453dd27c925c3273b28022b6f7d7ceb5e0f4edf0 100644 (file)
@@ -36,7 +36,7 @@ PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
 : AsmPrinter(O, TM, T, V), DbgInfo(O, T) {
   PTLI = static_cast<const PIC16TargetLowering*>(TM.getTargetLowering());
   PTAI = static_cast<const PIC16TargetAsmInfo*>(T);
-  PTOF = static_cast<const PIC16TargetObjectFile*>(&PTLI->getObjFileLowering());
+  PTOF = (PIC16TargetObjectFile*)&PTLI->getObjFileLowering();
 }
 
 bool PIC16AsmPrinter::printMachineInstruction(const MachineInstr *MI) {