From: Chris Lattner Date: Mon, 28 Oct 2002 01:27:30 +0000 (+0000) Subject: Fixes to previous checkin X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a4f808b54eb68b636a139d6ddf9b99671e6818ea;p=oota-llvm.git Fixes to previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4314 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h index aa6ddd55ca1..2193a80e529 100644 --- a/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/include/llvm/CodeGen/MachineCodeForInstruction.h @@ -35,10 +35,11 @@ public: static MachineCodeForInstruction &get(const Instruction *I) { assert(I != NULL); - return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID); + return *(MachineCodeForInstruction*) + ((Annotable*)I)->getOrCreateAnnotation(MCFI_AID); } static void destroy(const Instruction *I) { - I->deleteAnnotation(MCFI_AID); + ((Annotable*)I)->deleteAnnotation(MCFI_AID); } // Access to underlying machine instructions... diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h index aa6ddd55ca1..2193a80e529 100644 --- a/lib/Target/SparcV9/MachineCodeForInstruction.h +++ b/lib/Target/SparcV9/MachineCodeForInstruction.h @@ -35,10 +35,11 @@ public: static MachineCodeForInstruction &get(const Instruction *I) { assert(I != NULL); - return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID); + return *(MachineCodeForInstruction*) + ((Annotable*)I)->getOrCreateAnnotation(MCFI_AID); } static void destroy(const Instruction *I) { - I->deleteAnnotation(MCFI_AID); + ((Annotable*)I)->deleteAnnotation(MCFI_AID); } // Access to underlying machine instructions...